Contains the Vec4 structure with functions and overloaded operators.
More...
#include <Vec4.h>
|
float | x |
| Position variables. More...
|
|
float | y |
|
float | z |
|
float | w |
|
Contains the Vec4 structure with functions and overloaded operators.
◆ Vec4() [1/3]
Constructs the Vec4 setting the values to 0,0,0,0.
◆ Vec4() [2/3]
Vec4::Vec4 |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
w |
|
) |
| |
|
inline |
Constructs the Vec4 setting the values to the input coordinates.
- Parameters
-
x | The inputed x position. |
y | The inputed y position. |
z | The inputed z position. |
w | The inputed w position. |
◆ Vec4() [3/3]
Vec4::Vec4 |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
z, |
|
|
int |
w |
|
) |
| |
|
inline |
Constructs the Vec4 setting the values to the input coordinates.
- Parameters
-
x | The inputed x position. |
y | The inputed y position. |
z | The inputed z position. |
w | The inputed w position. |
◆ getLength()
float Vec4::getLength |
( |
| ) |
|
|
inline |
Returns the length of the Vec4.
- Returns
- The length of the Vec4.
◆ 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: