![]() |
NiTE 2.0
|
#include <NiTE.h>
Public Member Functions | |
Point3f () | |
Point3f (float x, float y, float z) | |
Point3f (const Point3f &other) | |
bool | operator!= (const Point3f &other) const |
Point3f & | operator= (const Point3f &other) |
bool | operator== (const Point3f &other) const |
void | set (float x, float y, float z) |
Encapsulates a single point in 3D space, storing the x/y/z coordinates as floating point numbers.
Can also be used to represent a three dimensional vector.
nite::Point3f::Point3f | ( | ) | [inline] |
Default Constructor, creates a point with all three coordinate values set to 0.0
nite::Point3f::Point3f | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Constructor. Creates a point from three given coordinates.
[in] | x | X coordinate of point to be created |
[in] | y | Y coordinate of point to be cretaed |
[in] | z | Z coordinate of point to be created |
nite::Point3f::Point3f | ( | const Point3f & | other | ) | [inline] |
Copy Constructor. Creates a new point that has the same coordinates as an existing point.
[in] | other | An existing point to be copied. |
bool nite::Point3f::operator!= | ( | const Point3f & | other | ) | const [inline] |
Inequality operator. Tests two points to see if they are different.
[in] | other | One of two points to test |
Assignment operator. Sets all coordinates of the point on the left to be equal to the coordinate values of the point on the left.
[in] | other | Point to copy coordinates from |
bool nite::Point3f::operator== | ( | const Point3f & | other | ) | const [inline] |
Equality operator. Tests two points to determine whether they have matching coordinate values.
[in] | other | One of the points to be tested against |
void nite::Point3f::set | ( | float | x, |
float | y, | ||
float | z | ||
) | [inline] |
Setter function for all coordinates of the point.
[in] | x | Desired new X coordinate of the point. |
[in] | y | Desired new Y coordinate of the point. |
[in] | z | Desired new Z coordinate of the point. |