Contains the Vec3 structure with functions and overloaded operators.
More...
#include <Vec3.h>
|
float | x |
| Position variables. More...
|
|
float | y |
|
float | z |
|
Contains the Vec3 structure with functions and overloaded operators.
◆ Vec3() [1/3]
Constructs the Vec3 setting the values to 0,0,0.
◆ Vec3() [2/3]
Vec3::Vec3 |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
|
inline |
Constructs the Vec3 setting the values to the input coordinates.
- Parameters
-
x | The inputed x position. |
y | The inputed y position. |
z | The inputed z position. |
◆ Vec3() [3/3]
Vec3::Vec3 |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z |
|
) |
| |
|
inline |
Constructs the Vec3 setting the values to the input coordinates.
- Parameters
-
x | The inputed x position. |
y | The inputed y position. |
z | The inputed z position. |
◆ getLength()
float Vec3::getLength |
( |
| ) |
|
|
inline |
Returns the length of the Vec3.
- Returns
- The length of the Vec3.
◆ getNormalised()
Vec3 Vec3::getNormalised |
( |
| ) |
|
|
inline |
Returns a normalised version of the Vec3.
- Returns
- The normalised Vec3.
◆ operator+=()
Overloads the += operator.
- Parameters
-
- Returns
- The new vector.
◆ operator-=()
Overloads the -= operator.
- Parameters
-
- Returns
- The new vector.
The documentation for this struct was generated from the following file: