The U4DPoint3n implements a 3D point representation in space.
More...
|
float | x |
| x-component
|
|
float | y |
| y-component
|
|
float | z |
| z-component
|
|
The U4DPoint3n implements a 3D point representation in space.
◆ U4DPoint3n() [1/2]
U4DEngine::U4DPoint3n::U4DPoint3n |
( |
float |
nx, |
|
|
float |
ny, |
|
|
float |
nz |
|
) |
| |
Contructor which creates a default 3D point with the given x, y and z component values.
- Parameters
-
nx | x-component |
ny | y-component |
nz | z-component |
◆ U4DPoint3n() [2/2]
U4DEngine::U4DPoint3n::U4DPoint3n |
( |
const U4DPoint3n & |
a | ) |
|
Copy constructor for the class.
- Parameters
-
◆ distanceBetweenPoints()
float U4DEngine::U4DPoint3n::distanceBetweenPoints |
( |
U4DPoint3n & |
v | ) |
|
Distance between points
- Parameters
-
- Returns
- Distance between points
◆ operator+()
Add points
- Parameters
-
- Returns
- point addition
◆ operator+=()
void U4DEngine::U4DPoint3n::operator+= |
( |
const U4DPoint3n & |
v | ) |
|
◆ operator-()
Point subraction
- Parameters
-
- Returns
- vector
◆ operator=()
Copy constructor for the class.
- Parameters
-
- Returns
- returns a copy of the 3D point
◆ operator==()
bool U4DEngine::U4DPoint3n::operator== |
( |
const U4DPoint3n & |
a | ) |
|
Method which compares if two 3D points are equal.
- Parameters
-
a | 3D point to compare with |
- Returns
- Returns true if two points are equal