1#include <game/mLib/m_angle.hpp>
2#include <game/mLib/m_vec.hpp>
10float DUMMY_M_VEC(s16 val) {
14inline bool isZero(
float val) {
38 float cos = angle.
cos();
39 float sin = angle.
sin();
42 this->y = cos * y - sin * z;
43 this->z = sin * y + cos * z;
47 float cos = angle.
cos();
48 float sin = angle.
sin();
51 this->x = cos * x + sin * z;
52 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.
bool normalizeRS()
Normalizes the vector.
float normalize()
Normalizes the vector.
mVec3_c & operator*=(f32 f)
Augmented scalar product operator.
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.