Storage and manipulation of points. More...
Public Member Functions | |
Point (const T &x, const T &y, const T &z) | |
Point (const Point &p) | |
Point () | |
~Point () | |
T & | operator[] (uint i) |
const T & | operator[] (uint i) const |
Point | operator- () const |
Point | operator+ (const Point &p) const |
Vector< T > | operator- (const Point &p) const |
Point | operator+ (const Vector< T > &v) const |
Point | operator- (const Vector< T > &v) const |
Point | operator/ (const T &s) const |
Static Public Attributes | |
static const Point | Epsilon |
static const Point | One |
static const Point | Max |
static const Point | Min |
static const Point | Zero |
Private Attributes | |
T | e [3] |
Friends | |
class | Vector< T > |
Point< T > | Math::operator* (const T &, const Point< T > &) |
Point | Min (const Point &p0, const Point &p1) |
Point | Max (const Point &p0, const Point &p1) |
istream & | operator>> (istream &in, Point &p) |
ostream & | operator<< (ostream &out, const Point &p) |
Storage and manipulation of points.
Math::Point< T >::Point | ( | const T & | x, |
const T & | y, | ||
const T & | z | ||
) | [inline] |
References Math::Point< T >::e.
Math::Point< T >::Point | ( | const Point< T > & | p | ) | [inline] |
References Math::Point< T >::e.
Math::Point< T >::Point | ( | ) | [inline] |
References Math::Point< T >::e.
Referenced by Math::Point< T >::operator+(), Math::Point< T >::operator-(), and Math::Point< T >::operator/().
Math::Point< T >::~Point | ( | ) | [inline] |
Point Math::Point< T >::operator+ | ( | const Point< T > & | p | ) | const [inline] |
References Math::Point< T >::e, and Math::Point< T >::Point().
Point Math::Point< T >::operator+ | ( | const Vector< T > & | v | ) | const [inline] |
References Math::Point< T >::e, Math::Vector< T >::e, and Math::Point< T >::Point().
Point Math::Point< T >::operator- | ( | ) | const [inline] |
References Math::Point< T >::e, and Math::Point< T >::Point().
Vector<T> Math::Point< T >::operator- | ( | const Point< T > & | p | ) | const [inline] |
References Math::Point< T >::e.
Point Math::Point< T >::operator- | ( | const Vector< T > & | v | ) | const [inline] |
References Math::Point< T >::e, Math::Vector< T >::e, and Math::Point< T >::Point().
Point Math::Point< T >::operator/ | ( | const T & | s | ) | const [inline] |
References Math::Point< T >::e, and Math::Point< T >::Point().
T& Math::Point< T >::operator[] | ( | uint | i | ) | [inline] |
References Math::Point< T >::e.
const T& Math::Point< T >::operator[] | ( | uint | i | ) | const [inline] |
References Math::Point< T >::e.
ostream& operator<< | ( | ostream & | out, |
const Point< T > & | p | ||
) | [friend] |
istream& operator>> | ( | istream & | in, |
Point< T > & | p | ||
) | [friend] |
friend class Vector< T > [friend] |
T Math::Point< T >::e[3] [private] |
const Point< T > Math::Point< T >::Epsilon [static] |
const Point< T > Math::Point< T >::Max [static] |
const Point< T > Math::Point< T >::Min [static] |
const Point< T > Math::Point< T >::One [static] |
const Point< T > Math::Point< T >::Zero [static] |