NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches

#include <game/mLib/m_angle.hpp>

Description

A one-dimensional short angle vector.

Definition at line 12 of file m_angle.hpp.

Public Member Functions

 mAng ()
 Constructs an empty vector.
 mAng (s16 x)
 Constructs a vector from a short value.
mAngoperator= (s16 ang)
 Assignment operator from a short value.
 operator s16 ()
BOOL chase (short target, short step)
int abs () const
mAngoperator+= (const mAng &v)
 Augmented addition operator.
mAngoperator-= (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.
float sin () const
 Computes the sine of the angle.
float cos () const
 Computes the cosine of the angle.

Public Attributes

s16 mAngle
 The rotation.

Static Public Attributes

static float AngleToDegreeCoefficient
static float DegreeToAngleCoefficient

Constructor & Destructor Documentation

◆ mAng() [1/2]

mAng::mAng ( )
inline

Constructs an empty vector.

Definition at line 15 of file m_angle.hpp.

◆ mAng() [2/2]

mAng::mAng ( s16 x)
inline

Constructs a vector from a short value.

Definition at line 18 of file m_angle.hpp.

Member Function Documentation

◆ operator=()

mAng * mAng::operator= ( s16 ang)
inline

Assignment operator from a short value.

Definition at line 21 of file m_angle.hpp.

◆ operator s16()

mAng::operator s16 ( )
inline

Definition at line 26 of file m_angle.hpp.

◆ chase()

BOOL mAng::chase ( short target,
short step )
inline

Definition at line 28 of file m_angle.hpp.

◆ abs()

int mAng::abs ( ) const
inline

Definition at line 32 of file m_angle.hpp.

◆ operator+=()

mAng & mAng::operator+= ( const mAng & v)
inline

Augmented addition operator.

Definition at line 37 of file m_angle.hpp.

◆ operator-=()

mAng & mAng::operator-= ( const mAng & v)
inline

Augmented subtraction operator.

Definition at line 40 of file m_angle.hpp.

◆ operator+() [1/2]

mAng mAng::operator+ ( ) const
inline

Positive operator.

Definition at line 43 of file m_angle.hpp.

◆ operator-() [1/2]

mAng mAng::operator- ( ) const
inline

Negative operator.

Definition at line 46 of file m_angle.hpp.

◆ operator+() [2/2]

mAng mAng::operator+ ( const mAng & v) const
inline

Addition operator.

Definition at line 49 of file m_angle.hpp.

◆ operator-() [2/2]

mAng mAng::operator- ( const mAng & v) const
inline

Subtraction operator.

Definition at line 52 of file m_angle.hpp.

◆ sin()

float mAng::sin ( ) const
inline

Computes the sine of the angle.

Definition at line 55 of file m_angle.hpp.

◆ cos()

float mAng::cos ( ) const
inline

Computes the cosine of the angle.

Definition at line 58 of file m_angle.hpp.

Member Data Documentation

◆ mAngle

s16 mAng::mAngle

The rotation.

Definition at line 60 of file m_angle.hpp.

◆ AngleToDegreeCoefficient

float mAng::AngleToDegreeCoefficient
static

Definition at line 62 of file m_angle.hpp.

◆ DegreeToAngleCoefficient

float mAng::DegreeToAngleCoefficient
static

Definition at line 63 of file m_angle.hpp.