The Vector3f
class provides functionality for the strategy used to handle 3D vectors.
More...
|
static void | Add (Vector3f *out, const Vector3f &v) |
| Adds the specified vector to the target vector. More...
|
|
static void | Mul (Vector3f *out, const f32 &t) |
| Multiplies the target vector by the specified scalar value. More...
|
|
The Vector3f
class provides functionality for the strategy used to handle 3D vectors.
- Revision History:
- 2013-10-29 Initial version.
nn::pia::reckoning::Vector3f::Vector3f |
( |
const f32 |
x, |
|
|
const f32 |
y, |
|
|
const f32 |
z |
|
) |
| |
|
inline |
Instantiates the object and initializes the element with the specified arguments.
- Parameters
-
[in] | x,y,z | Specifies the values to use for initialization. |
static void nn::pia::reckoning::Vector3f::Add |
( |
Vector3f * |
out, |
|
|
const Vector3f & |
v |
|
) |
| |
|
inlinestatic |
Adds the specified vector to the target vector.
- Parameters
-
[out] | out | Stores the target vector. |
[in] | v | Specifies the vector to add. |
static void nn::pia::reckoning::Vector3f::Mul |
( |
Vector3f * |
out, |
|
|
const f32 & |
t |
|
) |
| |
|
inlinestatic |
Multiplies the target vector by the specified scalar value.
- Parameters
-
[out] | out | Stores the target vector. |
[in] | t | Specifies the scalar value. |
Adds the specified vector and assigns the result.
- Parameters
-
[in] | v | Specifies the vector to add. |
- Returns
- Returns the vector after addition.
Vector3f& nn::pia::reckoning::Vector3f::operator/= |
( |
const f32 & |
t | ) |
|
|
inline |
Divides by the specified scalar value and assigns the result.
- Parameters
-
[in] | t | Specifies the value to divide by. |
- Returns
- Returns the vector after division.
f32 nn::pia::reckoning::Vector3f::SquaredDistance |
( |
const Vector3f & |
v | ) |
const |
|
inline |
Gets the square of the distance between two points.
- Parameters
-
[in] | v | Specifies the vector to find the distance of. |
- Returns
- Returns the square of the distance.