17 #include <pia/reckoning/reckoning_definitions.h> 41 : x(0.f), y(0.f), z(0.f) {};
47 Vector3f(
const f32 x,
const f32 y,
const f32 z)
69 f32 dx = this->x - v.x;
70 f32 dy = this->y - v.y;
71 f32 dz = this->z - v.z;
72 return dx * dx + dy * dy + dz * dz;
void MakeZero()
Sets the zero vector.
Definition: reckoning_Vector3f.h:57
Vector3f & operator/=(const f32 &t)
Divides by the specified scalar value and assigns the result.
Definition: reckoning_Vector3f.h:118
f32 SquaredDistance(const Vector3f &v) const
Gets the square of the distance between two points.
Definition: reckoning_Vector3f.h:67
Vector3f & operator+=(const Vector3f &v)
Adds the specified vector and assigns the result.
Definition: reckoning_Vector3f.h:105
static void Add(Vector3f *out, const Vector3f &v)
Adds the specified vector to the target vector.
Definition: reckoning_Vector3f.h:80
The Vector3f class provides functionality for the strategy used to handle 3D vectors.
Definition: reckoning_Vector3f.h:32
Vector3f(const f32 x, const f32 y, const f32 z)
Instantiates the object and initializes the element with the specified arguments. ...
Definition: reckoning_Vector3f.h:47
static void Mul(Vector3f *out, const f32 &t)
Multiplies the target vector by the specified scalar value.
Definition: reckoning_Vector3f.h:93
Vector3f()
Instantiates the object with default parameters (default constructor).
Definition: reckoning_Vector3f.h:40