1 #ifndef GeometryVector_Point2DBase_h 2 #define GeometryVector_Point2DBase_h 8 template <
class T,
class FrameTag>
61 template <
typename T,
typename U,
class Frame>
65 return RT(
p.basicVector() +
v.basicVector());
70 template <
typename T,
typename U,
class Frame>
74 return RT(
p.basicVector() +
v.basicVector());
81 template <
typename T,
typename U,
class Frame>
85 return RT(
p1.basicVector() -
p2.basicVector());
88 #endif // GeometryVector_Point2DBase_h
PV2DBase< T, PointTag, FrameTag > BaseClass
Vector2DBase< typename PreciseFloatType< T, U >::Type, Frame > operator-(const Point2DBase< T, Frame > &p1, const Point2DBase< U, Frame > &p2)
Basic2DVector< T > BasicVectorType
Point2DBase(const T &x, const T &y)
construct from cartesian coordinates
Point2DBase< typename PreciseFloatType< T, U >::Type, Frame > operator+(const Point2DBase< T, Frame > &p, const Vector2DBase< U, Frame > &v)
const BasicVectorType & basicVector() const
Point2DBase(const Point2DBase< U, FrameTag > &p)
Point2DBase(const Polar &set)
construct from polar coordinates
Vector2DBase< T, FrameTag > VectorType
Point2DBase(const Basic2DVector< U > &v)
Point2DBase & operator+=(const Vector2DBase< U, FrameTag > &v)
Point2DBase & operator-=(const Vector2DBase< U, FrameTag > &v)