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

#include <game/mLib/m_angle.hpp>

Description

A three-dimensional short angle vector.

Definition at line 60 of file m_angle.hpp.

Public Member Functions

 mAng3_c ()
 Constructs an empty vector.
 
 mAng3_c (const s16 *p)
 Constructs a vector from a short array.
 
 mAng3_c (s16 fx, s16 fy, s16 fz)
 Constructs a vector from three short values.
 
 mAng3_c (const S16Vec &v)
 Constructs a new vector from an existing vector from the MTX library.
 
 operator s16 * ()
 Short cast operator.
 
 operator const s16 * () const
 Const short cast operator.
 
 operator S16Vec * ()
 S16Vec cast operator.
 
 operator const S16Vec * () const
 Const S16Vec cast operator.
 
mAng3_coperator+= (const mAng3_c &v)
 Augmented addition operator.
 
mAng3_coperator-= (const mAng3_c &v)
 Augmented subtraction operator.
 
mAng3_c operator+ () const
 Positive operator.
 
mAng3_c operator- () const
 Negative operator.
 
mAng3_c operator+ (const mAng3_c &v) const
 Addition operator.
 
mAng3_c operator- (const mAng3_c &v) const
 Subtraction operator.
 
bool operator== (const mAng3_c &v) const
 Equality operator.
 
bool operator!= (const mAng3_c &v) const
 Inequality operator.
 

Public Attributes

s16 x
 The rotation on the X axis.
 
s16 y
 The rotation on the Y axis.
 
s16 z
 The rotation on the Z axis.
 

Static Public Attributes

static mAng3_c Zero = mAng3_c(0, 0, 0)
 The null rotation vector.
 
static mAng3_c Ex = mAng3_c(1, 0, 0)
 The unit rotation vector for the X axis.
 
static mAng3_c Ey = mAng3_c(0, 1, 0)
 The unit rotation vector for the Y axis.
 
static mAng3_c Ez = mAng3_c(0, 0, 1)
 The unit rotation vector for the Z axis.
 

Constructor & Destructor Documentation

◆ mAng3_c() [1/4]

mAng3_c::mAng3_c ( )
inline

Constructs an empty vector.

Definition at line 64 of file m_angle.hpp.

◆ mAng3_c() [2/4]

mAng3_c::mAng3_c ( const s16 * p)
inline

Constructs a vector from a short array.

Definition at line 67 of file m_angle.hpp.

◆ mAng3_c() [3/4]

mAng3_c::mAng3_c ( s16 fx,
s16 fy,
s16 fz )
inline

Constructs a vector from three short values.

Definition at line 70 of file m_angle.hpp.

◆ mAng3_c() [4/4]

mAng3_c::mAng3_c ( const S16Vec & v)
inline

Constructs a new vector from an existing vector from the MTX library.

Definition at line 73 of file m_angle.hpp.

Member Function Documentation

◆ operator s16 *()

mAng3_c::operator s16 * ( )
inline

Short cast operator.

Definition at line 76 of file m_angle.hpp.

◆ operator const s16 *()

mAng3_c::operator const s16 * ( ) const
inline

Const short cast operator.

Definition at line 79 of file m_angle.hpp.

◆ operator S16Vec *()

mAng3_c::operator S16Vec * ( )
inline

S16Vec cast operator.

Definition at line 82 of file m_angle.hpp.

◆ operator const S16Vec *()

mAng3_c::operator const S16Vec * ( ) const
inline

Const S16Vec cast operator.

Definition at line 85 of file m_angle.hpp.

◆ operator+=()

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

Augmented addition operator.

Definition at line 88 of file m_angle.hpp.

◆ operator-=()

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

Augmented subtraction operator.

Definition at line 91 of file m_angle.hpp.

◆ operator+() [1/2]

mAng3_c mAng3_c::operator+ ( ) const
inline

Positive operator.

Definition at line 94 of file m_angle.hpp.

◆ operator-() [1/2]

mAng3_c mAng3_c::operator- ( ) const
inline

Negative operator.

Definition at line 97 of file m_angle.hpp.

◆ operator+() [2/2]

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

Addition operator.

Definition at line 100 of file m_angle.hpp.

◆ operator-() [2/2]

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

Subtraction operator.

Definition at line 103 of file m_angle.hpp.

◆ operator==()

bool mAng3_c::operator== ( const mAng3_c & v) const
inline

Equality operator.

Definition at line 106 of file m_angle.hpp.

◆ operator!=()

bool mAng3_c::operator!= ( const mAng3_c & v) const
inline

Inequality operator.

Definition at line 109 of file m_angle.hpp.

Member Data Documentation

◆ x

s16 mAng3_c::x

The rotation on the X axis.

Definition at line 111 of file m_angle.hpp.

◆ y

s16 mAng3_c::y

The rotation on the Y axis.

Definition at line 112 of file m_angle.hpp.

◆ z

s16 mAng3_c::z

The rotation on the Z axis.

Definition at line 113 of file m_angle.hpp.

◆ Zero

mAng3_c mAng3_c::Zero = mAng3_c(0, 0, 0)
static

The null rotation vector.

Definition at line 115 of file m_angle.hpp.

◆ Ex

mAng3_c mAng3_c::Ex = mAng3_c(1, 0, 0)
static

The unit rotation vector for the X axis.

Definition at line 116 of file m_angle.hpp.

◆ Ey

mAng3_c mAng3_c::Ey = mAng3_c(0, 1, 0)
static

The unit rotation vector for the Y axis.

Definition at line 117 of file m_angle.hpp.

◆ Ez

mAng3_c mAng3_c::Ez = mAng3_c(0, 0, 1)
static

The unit rotation vector for the Z axis.

Definition at line 118 of file m_angle.hpp.