NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
|
#include <game/mLib/m_angle.hpp>
A one-dimensional short angle vector.
Definition at line 8 of file m_angle.hpp.
Public Member Functions | |
mAng () | |
Constructs an empty vector. | |
mAng (const s16 *p) | |
Constructs a vector from a short pointer. | |
mAng (s16 x) | |
Constructs a vector from a short value. | |
operator s16 * () | |
Short cast operator. | |
operator const s16 * () const | |
Const short cast operator. | |
mAng & | operator+= (const mAng &v) |
Augmented addition operator. | |
mAng & | operator-= (const mAng &v) |
Augmented subtraction operator. | |
mAng | operator+ () const |
Positive operator. | |
mAng | operator- () const |
Negative operator. | |
mAng | operator+ (const mAng &v) const |
Addition operator. | |
mAng | operator- (const mAng &v) const |
Subtraction operator. | |
bool | operator== (const mAng &v) const |
Equality operator. | |
bool | operator!= (const mAng &v) const |
Inequality operator. | |
float | sin () const |
Computes the sine of the angle. | |
float | cos () const |
Computes the cosine of the angle. | |
Public Attributes | |
s16 | mAngle |
The rotation. | |
|
inline |
Constructs an empty vector.
Definition at line 11 of file m_angle.hpp.
|
inline |
Constructs a vector from a short pointer.
Definition at line 14 of file m_angle.hpp.
|
inline |
Constructs a vector from a short value.
Definition at line 17 of file m_angle.hpp.
|
inline |
Short cast operator.
Definition at line 20 of file m_angle.hpp.
|
inline |
Const short cast operator.
Definition at line 23 of file m_angle.hpp.
Augmented addition operator.
Definition at line 26 of file m_angle.hpp.
Augmented subtraction operator.
Definition at line 29 of file m_angle.hpp.
|
inline |
Positive operator.
Definition at line 32 of file m_angle.hpp.
|
inline |
Negative operator.
Definition at line 35 of file m_angle.hpp.
Addition operator.
Definition at line 38 of file m_angle.hpp.
Subtraction operator.
Definition at line 41 of file m_angle.hpp.
|
inline |
Equality operator.
Definition at line 44 of file m_angle.hpp.
|
inline |
Inequality operator.
Definition at line 47 of file m_angle.hpp.
|
inline |
Computes the sine of the angle.
Definition at line 50 of file m_angle.hpp.
|
inline |
Computes the cosine of the angle.
Definition at line 53 of file m_angle.hpp.
s16 mAng::mAngle |
The rotation.
Definition at line 55 of file m_angle.hpp.