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>
59 inline std::ostream& operator<<(std::ostream& s, const PV2DBase<T, PV, F>&
v) {
60 return s <<
" (" <<
v.x() <<
',' <<
v.y() <<
") ";
62 #endif // GeometryVector_PV2DBase_h
MathVector & mathVector()
MathVector const & mathVector() const
Vec2< double > MathVector
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
T r() const
Radius, same as mag()
PV2DBase(const Basic2DVector< U > &v)
BasicVectorType::Polar Polar
BasicVectorType::MathVector MathVector
PV2DBase(const Polar &set)
construct from polar coordinates
Geom::Phi< T > phi() const
BasicVectorType & basicVector()
const BasicVectorType & basicVector() const
T y() const
Cartesian y coordinate.
BasicVectorType theVector
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
Basic2DVector< T > BasicVectorType
Geom::Phi< T > phi() const
T x() const
Cartesian x coordinate.
PV2DBase(const T &x, const T &y)
construct from cartesian coordinates