1 #ifndef GeometryVector_PV2DBase_h
2 #define GeometryVector_PV2DBase_h
9 template <
class T,
class PVType,
class FrameType>
60 template <
class T,
class PV,
class F>
61 inline std::ostream & operator<<(std::ostream& s, const PV2DBase<T,PV,F>&
v) {
62 return s <<
" (" <<
v.x() <<
',' <<
v.y() <<
") ";
64 #endif // GeometryVector_PV2DBase_h
MathVector & mathVector()
MathVector const & mathVector() const
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
void set(const std::string &name, int value)
set the flag, with a run-time name