Go to the documentation of this file. 1 #ifndef GeometryVector_PV2DBase_h
2 #define GeometryVector_PV2DBase_h
9 template <
class T,
class PVType,
class FrameType>
58 template <
class T,
class PV,
class F>
60 return s <<
" (" <<
v.x() <<
',' <<
v.y() <<
") ";
62 #endif // GeometryVector_PV2DBase_h
PV2DBase(const Basic2DVector< U > &v)
Geom::Phi< T > phi() const
const BasicVectorType & basicVector() const
MathVector const & mathVector() const
BasicVectorType::MathVector MathVector
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
PV2DBase(const T &x, const T &y)
construct from cartesian coordinates
T r() const
Radius, same as mag()
Geom::Phi< T > phi() const
Vec2< double > MathVector
T y() const
Cartesian y coordinate.
BasicVectorType theVector
T x() const
Cartesian x coordinate.
PV2DBase(const Polar &set)
construct from polar coordinates
std::ostream & operator<<(std::ostream &s, const PV2DBase< T, PV, F > &v)
BasicVectorType & basicVector()
Basic2DVector< T > BasicVectorType
BasicVectorType::Polar Polar
MathVector & mathVector()
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)