Inheritance diagram for NdPoint:

Definition at line 122 of file Geometry.H.
Public Member Functions | ||||
| NdPoint (const int dimension) | ||||
| NdPoint (const int dimension, const T &value) | ||||
| NdPoint (const NdPoint< T > &point) | ||||
| virtual | ~NdPoint () | |||
| bool | operator== (const NdPoint< T > &point) const | |||
Dimension | ||||
| int | n () const | |||
| ||||
Operations | ||||
| NdPoint< T > | operator+ (const NdVector< T > &vector) const | |||
| ||||
| NdPoint< T > | operator- (const NdVector< T > &vector) const | |||
| ||||
| NdPoint< T > & | operator+= (const NdVector< T > &vector) | |||
| ||||
| NdPoint< T > & | operator-= (const NdVector< T > &vector) | |||
| ||||
| NdVector< T > | operator- (const NdPoint< T > &point) const | |||
| ||||
| double | distance (const NdPoint< T > &point) const | |||
| ||||
| NdPoint | ( | const int | dimension | ) | [inline, explicit] |
Allocate a point of the given dimension.
| [in] | dimension | The dimension of the point. |
Definition at line 126 of file Geometry.H.
| NdPoint | ( | const int | dimension, | |
| const T & | value | |||
| ) | [inline] |
Allocate a point of the given dimension, and set all of its elements to the given value.
| [in] | dimension | The dimension of the point. |
| [in] | value | The value to set the elements to. |
Definition at line 130 of file Geometry.H.
Definition at line 131 of file Geometry.H.
| virtual ~NdPoint | ( | ) | [inline, virtual] |
Definition at line 132 of file Geometry.H.
| bool operator== | ( | const NdPoint< T > & | point | ) | const [inline] |
Check if two points are the same.
| [in] | point | The point to check against. |
Definition at line 138 of file Geometry.H.
References n().
| int n | ( | ) | const [inline] |
Definition at line 146 of file Geometry.H.
References size.
Referenced by Rectangle::boundary(), Rectangle::closure(), distance(), Rectangle::interior(), operator+(), operator+=(), operator-(), operator-=(), operator==(), and operator>>().
| [in] | vector | The vector to add. |
Definition at line 154 of file Geometry.H.
References NdVector::n(), and n().
| [in] | vector | The vector to subtract. |
Definition at line 159 of file Geometry.H.
References NdVector::n(), and n().
| [in] | vector | The vector to move the point along. |
Definition at line 165 of file Geometry.H.
References NdVector::n(), and n().
| [in] | vector | The vector to move the point backwards along. |
Definition at line 170 of file Geometry.H.
References NdVector::n(), and n().
| [in] | point | The second point. |
Definition at line 176 of file Geometry.H.
References n().
| double distance | ( | const NdPoint< T > & | point | ) | const [inline] |
| [in] | point | The second point. |
Definition at line 185 of file Geometry.H.
References n(), and Array::operator()().
1.5.1