3#include <game/sLib/s_math.hpp>
21 operator s16() {
return mAngle; }
23 bool chase(
short target,
short step) {
24 return sLib::chase(&
mAngle, target, step);
76 mAng3_c(s16 fx, s16 fy, s16 fz) {
x = fx;
y = fy;
z = fz; }
80 tmp.
y = fy; tmp.
x = tmp.
z =
mAng(0);
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(const mAng3_c &v)
Copy constructor.
mAng y
The rotation on the Y axis.
mAng3_c & operator+=(const mAng3_c &v)
Augmented addition operator.
mAng 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.
mAng x
The rotation on the X axis.
bool operator==(const mAng3_c &v) const
Equality operator.
mAng3_c(mAng fx, mAng fy, mAng fz)
Constructs a vector from three mAng values.
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.
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 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.