#include <Point.h>
Inheritance diagram for sava::spatial::Point< Dimensions, CoordType >:
Dimensions | The number of dimensons in the point (default is 2). | |
CoordType | The type of th coordinates (default is unsigned int). |
Definition at line 91 of file Point.h.
Public Types | |
typedef CoordType | coordinate_type |
The type of coordinates stored in the point. | |
Public Member Functions | |
Point () | |
Constructs a point with all coordinate values set to zero. | |
coordinate_type & | operator[] (const unsigned int index) |
Returns the coordinate at the specified index. | |
const coordinate_type & | operator[] (const unsigned int index) const |
Returns the coordinate at the specified index as a const reference. | |
Static Public Member Functions | |
static const unsigned int | dimensions () |
Returns the number of dimensions in the point. |
|
The type of coordinates stored in the point.
Reimplemented in sava::spatial::Point2D< CoordType >, and sava::spatial::Point3D< CoordType >. |
|
Constructs a point with all coordinate values set to zero.
|
|
Returns the number of dimensions in the point.
|
|
Returns the coordinate at the specified index as a const reference.
|
|
Returns the coordinate at the specified index.
|