CTR Pia  4.11.3
Game Communication Engine
nn::pia::reckoning::Vector3f Class Reference

The Vector3f class provides functionality for the strategy used to handle 3D vectors. More...

Public Member Functions

 Vector3f ()
 Instantiates the object with default parameters (default constructor).
 
 Vector3f (const f32 x, const f32 y, const f32 z)
 Instantiates the object and initializes the element with the specified arguments. More...
 
void MakeZero ()
 Sets the zero vector.
 
Vector3foperator+= (const Vector3f &v)
 Adds the specified vector and assigns the result. More...
 
Vector3foperator/= (const f32 &t)
 Divides by the specified scalar value and assigns the result. More...
 
f32 SquaredDistance (const Vector3f &v) const
 Gets the square of the distance between two points. More...
 

Static Public Member Functions

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...
 

Detailed Description

The Vector3f class provides functionality for the strategy used to handle 3D vectors.


Revision History:
2013-10-29 Initial version.

Constructor & Destructor Documentation

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,zSpecifies the values to use for initialization.

Member Function Documentation

static void nn::pia::reckoning::Vector3f::Add ( Vector3f out,
const Vector3f v 
)
inlinestatic

Adds the specified vector to the target vector.

Parameters
[out]outStores the target vector.
[in]vSpecifies 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]outStores the target vector.
[in]tSpecifies the scalar value.
Vector3f& nn::pia::reckoning::Vector3f::operator+= ( const Vector3f v)
inline

Adds the specified vector and assigns the result.

Parameters
[in]vSpecifies 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]tSpecifies 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]vSpecifies the vector to find the distance of.
Returns
Returns the square of the distance.