23 operator const s16*()
const {
return &
mAngle; }
70 mAng3_c(s16 fx, s16 fy, s16 fz) {
x = fx;
y = fy;
z = fz; }
76 operator s16*() {
return &
x; }
79 operator const s16*()
const {
return &
x; }
A three-dimensional short angle vector.
mAng3_c()
Constructs an empty vector.
mAng3_c operator+(const mAng3_c &v) const
Addition operator.
mAng3_c operator+() const
Positive operator.
static mAng3_c Ez
The unit rotation vector for the Z axis.
mAng3_c & operator-=(const mAng3_c &v)
Augmented subtraction operator.
static mAng3_c Ey
The unit rotation vector for the Y axis.
mAng3_c operator-(const mAng3_c &v) const
Subtraction operator.
mAng3_c & operator+=(const mAng3_c &v)
Augmented addition operator.
s16 y
The rotation on the Y axis.
s16 z
The rotation on the Z axis.
static mAng3_c Zero
The null rotation vector.
bool operator!=(const mAng3_c &v) const
Inequality operator.
mAng3_c(s16 fx, s16 fy, s16 fz)
Constructs a vector from three short values.
static mAng3_c Ex
The unit rotation vector for the X axis.
mAng3_c operator-() const
Negative operator.
bool operator==(const mAng3_c &v) const
Equality operator.
mAng3_c(const s16 *p)
Constructs a vector from a short array.
mAng3_c(const S16Vec &v)
Constructs a new vector from an existing vector from the MTX library.
s16 x
The rotation on the X axis.
float CosS(short ang)
Computes the cosine value.
float SinS(short ang)
Computes the sine value.
A three-dimensional short vector.
A one-dimensional short angle vector.
bool operator==(const mAng &v) const
Equality operator.
mAng & operator+=(const mAng &v)
Augmented addition operator.
mAng()
Constructs an empty vector.
mAng(const s16 *p)
Constructs a vector from a short pointer.
mAng operator-() const
Negative operator.
float cos() const
Computes the cosine of the angle.
float sin() const
Computes the sine of the angle.
mAng & operator-=(const mAng &v)
Augmented subtraction operator.
mAng(s16 x)
Constructs a vector from a short value.
mAng operator-(const mAng &v) const
Subtraction operator.
mAng operator+() const
Positive operator.
bool operator!=(const mAng &v) const
Inequality operator.
mAng operator+(const mAng &v) const
Addition operator.