#include <Point2DBase.h>
Public Types | |
typedef PV2DBase< T, PointTag, FrameTag > | BaseClass |
typedef Basic2DVector< T > | BasicVectorType |
typedef BaseClass::Polar | Polar |
typedef Vector2DBase< T, FrameTag > | VectorType |
Public Member Functions | |
template<class U > | |
Point2DBase & | operator+= (const Vector2DBase< U, FrameTag > &v) |
template<class U > | |
Point2DBase & | operator-= (const Vector2DBase< U, FrameTag > &v) |
Point2DBase (const T &x, const T &y) | |
construct from cartesian coordinates | |
template<class U > | |
Point2DBase (const Basic2DVector< U > &v) | |
Point2DBase (const Polar &set) | |
construct from polar coordinates | |
Point2DBase () | |
template<class U > | |
Point2DBase (const Point2DBase< U, FrameTag > &p) |
Definition at line 10 of file Point2DBase.h.
typedef PV2DBase< T, PointTag, FrameTag> Point2DBase< T, FrameTag >::BaseClass |
Definition at line 13 of file Point2DBase.h.
typedef Basic2DVector<T> Point2DBase< T, FrameTag >::BasicVectorType |
Reimplemented from PV2DBase< T, PointTag, FrameTag >.
Definition at line 15 of file Point2DBase.h.
typedef BaseClass::Polar Point2DBase< T, FrameTag >::Polar |
Reimplemented from PV2DBase< T, PointTag, FrameTag >.
Definition at line 16 of file Point2DBase.h.
typedef Vector2DBase< T, FrameTag> Point2DBase< T, FrameTag >::VectorType |
Definition at line 14 of file Point2DBase.h.
Point2DBase< T, FrameTag >::Point2DBase | ( | ) | [inline] |
default constructor uses default constructor of T to initialize the components. For built-in floating-point types this means initialization to zero
Definition at line 22 of file Point2DBase.h.
{}
Point2DBase< T, FrameTag >::Point2DBase | ( | const Point2DBase< U, FrameTag > & | p | ) | [inline] |
Construct from another point in the same reference frame, possiblly with different precision
Definition at line 28 of file Point2DBase.h.
: BaseClass( p.basicVector()) {}
Point2DBase< T, FrameTag >::Point2DBase | ( | const T & | x, |
const T & | y | ||
) | [inline] |
construct from cartesian coordinates
Definition at line 31 of file Point2DBase.h.
Point2DBase< T, FrameTag >::Point2DBase | ( | const Polar & | set | ) | [inline, explicit] |
Point2DBase< T, FrameTag >::Point2DBase | ( | const Basic2DVector< U > & | v | ) | [inline, explicit] |
Explicit constructor from BasicVectorType, bypasses consistency checks for point/vector and for coordinate frame. To be used as carefully as e.g. const_cast.
Definition at line 41 of file Point2DBase.h.
: BaseClass(v) {}
Point2DBase& Point2DBase< T, FrameTag >::operator+= | ( | const Vector2DBase< U, FrameTag > & | v | ) | [inline] |
A Point can be shifted by a Vector of possibly different precision, defined in the same coordinate frame
Definition at line 47 of file Point2DBase.h.
{ this->basicVector() += v.basicVector(); return *this; }
Point2DBase& Point2DBase< T, FrameTag >::operator-= | ( | const Vector2DBase< U, FrameTag > & | v | ) | [inline] |
Definition at line 53 of file Point2DBase.h.
{ this->basicVector() -= v.basicVector(); return *this; }