Go to the documentation of this file. 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
const BasicVectorType & basicVector() const
Vector2DBase< typename PreciseFloatType< T, U >::Type, Frame > operator-(const Point2DBase< T, Frame > &p1, const Point2DBase< U, Frame > &p2)
Basic2DVector< T > BasicVectorType
Point2DBase< typename PreciseFloatType< T, U >::Type, Frame > operator+(const Point2DBase< T, Frame > &p, const Vector2DBase< U, Frame > &v)
Point2DBase(const T &x, const T &y)
construct from cartesian coordinates
Point2DBase(const Polar &set)
construct from polar coordinates
Point2DBase(const Point2DBase< U, FrameTag > &p)
Vector2DBase< T, FrameTag > VectorType
Point2DBase(const Basic2DVector< U > &v)
Point2DBase & operator-=(const Vector2DBase< U, FrameTag > &v)
Point2DBase & operator+=(const Vector2DBase< U, FrameTag > &v)