74 float x(
void)
const {
return (*
this)[0]; }
81 float y(
void)
const {
return (*
this)[1]; }
88 float z(
void)
const {
return (*
this)[2]; }
95 float getX(
void)
const {
return x(); }
102 float getY(
void)
const {
return y(); }
109 float getZ(
void)
const {
return z(); }
Represents a point in 3D space.
float getY(void) const
Get the y-coordinate of the point (alias for y())
float x(void) const
Access the x-coordinate of the point.
Point(float x, float y)
Constructor from 2D coordinates.
Point(float x, float y, float z)
Constructor from coordinates.
float z(void) const
Access the z-coordinate of the point.
Point(void)
Default constructor - initializes point at the origin (0,0,0)
Point(const Vector< float, 3 > &v)
Construct from a Vector<float,3> (implicit conversion)
float getZ(void) const
Get the z-coordinate of the point (alias for z())
float y(void) const
Access the y-coordinate of the point.
float getX(void) const
Get the x-coordinate of the point (alias for x())
A generic N-dimensional vector class template.