IAP GITLAB

Skip to content
Snippets Groups Projects
Forked from Air Shower Physics / corsika
4166 commits behind the upstream repository.
BaseVector.h 496 B
#ifndef _include_BASEVECTOR_H_
#define _include_BASEVECTOR_H_

#include <Geometry/QuantityVector.h>
#include <Geometry/CoordinateSystem.h>

/*!
 * Common base class for Vector and Point. Currently it does basically nothing.
 */

template <typename dim>
class BaseVector
{
protected:
    QuantityVector<dim> qVector;
    CoordinateSystem const* cs;
    
public:
    BaseVector(CoordinateSystem const& pCS, QuantityVector<dim> pQVector) :
        qVector(pQVector), cs(&pCS)
    {
    }
};

#endif