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()
T mag2() const
The vector magnitude squared. Equivalent to vec.dot(vec)
Vec2< double > MathVector
T y() const
Cartesian y coordinate.
PV2DBase(const Basic2DVector< U > &v)
BasicVectorType::Polar Polar
BasicVectorType::MathVector MathVector
MathVector const & mathVector() const
PV2DBase(const Polar &set)
construct from polar coordinates
Geom::Phi< T > phi() const
BasicVectorType & basicVector()
Geom::Phi< T > phi() const
const BasicVectorType & basicVector() const
BasicVectorType theVector
T r() const
Radius, same as mag()
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
Basic2DVector< T > BasicVectorType
T x() const
Cartesian x coordinate.
PV2DBase(const T &x, const T &y)
construct from cartesian coordinates