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 66 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 (mAng fx, mAng fy, mAng fz)
 Constructs a vector from three mAng values.
 
 mAng3_c (const S16Vec &v)
 Constructs a new vector from an existing vector from the MTX library.
 
 mAng3_c (const mAng3_c &v)
 Copy constructor.
 
mAng3_coperator= (const mAng3_c &v)
 
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.
 

Static Public Member Functions

static mAng3_c onlyY (s16 fy)
 

Public Attributes

mAng x
 The rotation on the X axis.
 
mAng y
 The rotation on the Y axis.
 
mAng 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/6]

mAng3_c::mAng3_c ( )
inline

Constructs an empty vector.

Definition at line 70 of file m_angle.hpp.

◆ mAng3_c() [2/6]

mAng3_c::mAng3_c ( const s16 * p)
inline

Constructs a vector from a short array.

Definition at line 73 of file m_angle.hpp.

◆ mAng3_c() [3/6]

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

Constructs a vector from three short values.

Definition at line 76 of file m_angle.hpp.

◆ mAng3_c() [4/6]

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

Constructs a vector from three mAng values.

Definition at line 85 of file m_angle.hpp.

◆ mAng3_c() [5/6]

mAng3_c::mAng3_c ( const S16Vec & v)
inline

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

Definition at line 88 of file m_angle.hpp.

◆ mAng3_c() [6/6]

mAng3_c::mAng3_c ( const mAng3_c & v)
inline

Copy constructor.

Definition at line 91 of file m_angle.hpp.

Member Function Documentation

◆ onlyY()

static mAng3_c mAng3_c::onlyY ( s16 fy)
inlinestatic

Definition at line 78 of file m_angle.hpp.

◆ operator=()

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

Definition at line 93 of file m_angle.hpp.

◆ operator+=()

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

Augmented addition operator.

Definition at line 101 of file m_angle.hpp.

◆ operator-=()

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

Augmented subtraction operator.

Definition at line 104 of file m_angle.hpp.

◆ operator+() [1/2]

mAng3_c mAng3_c::operator+ ( ) const
inline

Positive operator.

Definition at line 107 of file m_angle.hpp.

◆ operator-() [1/2]

mAng3_c mAng3_c::operator- ( ) const
inline

Negative operator.

Definition at line 110 of file m_angle.hpp.

◆ operator+() [2/2]

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

Addition operator.

Definition at line 113 of file m_angle.hpp.

◆ operator-() [2/2]

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

Subtraction operator.

Definition at line 116 of file m_angle.hpp.

◆ operator==()

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

Equality operator.

Definition at line 119 of file m_angle.hpp.

◆ operator!=()

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

Inequality operator.

Definition at line 122 of file m_angle.hpp.

Member Data Documentation

◆ x

mAng mAng3_c::x

The rotation on the X axis.

Definition at line 124 of file m_angle.hpp.

◆ y

mAng mAng3_c::y

The rotation on the Y axis.

Definition at line 125 of file m_angle.hpp.

◆ z

mAng mAng3_c::z

The rotation on the Z axis.

Definition at line 126 of file m_angle.hpp.

◆ Zero

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

The null rotation vector.

Definition at line 128 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 129 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 130 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 131 of file m_angle.hpp.