4-component vector.
More...
#include <Vec3.hpp>
|
|
float | x |
| |
|
float | y |
| |
|
float | z |
| |
|
float | w |
| |
◆ Vec4() [1/3]
| Vec4::Vec4 |
( |
float |
ax, |
|
|
float |
ay, |
|
|
float |
az, |
|
|
float |
aw |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| ax | X-coordinate. |
| ay | Y-coordinate. |
| az | Z-coordinate. |
| aw | W-coordinate. |
◆ Vec4() [2/3]
| Vec4::Vec4 |
( |
const Vec3 & |
v | ) |
|
|
inlineexplicit |
◆ Vec4() [3/3]
| Vec4::Vec4 |
( |
const Vec3 & |
v, |
|
|
float |
aW |
|
) |
| |
|
inline |
◆ Dot()
| float Vec4::Dot |
( |
const Vec4 & |
v | ) |
const |
|
inline |
Dot product.
- Parameters
-
- Returns
- Dot product of this vector and v.
◆ Length()
| float Vec4::Length |
( |
| ) |
const |
|
inline |
◆ Normalize()
◆ operator*()
| Vec4 Vec4::operator* |
( |
float |
f | ) |
const |
|
inline |
Multiplication operator.
- Parameters
-
| f | A value that is multiplied with this vector. |
- Returns
- This vector multiplied by f.
◆ operator+=()
| Vec4& Vec4::operator+= |
( |
const Vec4 & |
v | ) |
|
|
inline |
Operator addition and assign.
- Parameters
-
| v | Vector that is to be added to this vector. |
◆ operator-=()
| Vec4& Vec4::operator-= |
( |
const Vec4 & |
v | ) |
|
|
inline |
Operator subtract and assign.
- Parameters
-
| v | Vector that is to be subtracted from this vector. |
The documentation for this struct was generated from the following file:
- /home/glaze/Documents/src/Aether3D_2013/Include/Vec3.hpp