1#include <utility_inlines.hpp>
2#include <dol/mLib/m_angle.hpp>
3#include <dol/mLib/m_vec.hpp>
11float DUMMY_M_VEC(s16 val) {
15inline bool isZero(
float val) {
39 float cos = angle.
cos();
40 float sin = angle.
sin();
43 this->y = cos *
y - sin *
z;
44 this->z = sin *
y + cos *
z;
48 float cos = angle.
cos();
49 float sin = angle.
sin();
52 this->x = cos *
x + sin *
z;
53 this->z = -sin *
x + cos *
z;
A three-dimensional floating point vector.
static mVec3_c Ex
The unit vector for the X axis.
static mVec3_c Ey
The unit vector for the Y axis.
float y
The coordinates on the Y axis.
float x
The coordinates on the X axis.
bool normalizeRS()
Normalizes the vector.
float normalize()
Normalizes the vector.
mVec3_c & operator*=(f32 f)
Augmented scalar product operator.
float z
The coordinates on the Z axis.
void rotX(mAng angle)
Rotates the vector on the X axis by the given angle.
void rotY(mAng angle)
Rotates the vector on the Y axis by the given angle.
static mVec3_c Zero
The null vector.
static mVec3_c Ez
The unit vector for the Z axis.
f32 PSVECMag(const Vec *v)
Computes the magnitude of a vector.
float fabsf(float x)
Returns the absolute value of x.
#define FLT_EPSILON
Difference between 1 and the smallest 32-bit floating-point value greater than 1.
float CosS(short ang)
Computes the cosine value.
A one-dimensional short angle vector.
float cos() const
Computes the cosine of the angle.
float sin() const
Computes the sine of the angle.