New Super Mario Bros. U Headers
Loading...
Searching...
No Matches
Angle Class Reference

#include <Angle.h>

Public Member Functions

 Angle ()
 Angle (s32 value)
 Angle (const Angle &other)=default
 operator s32 () const
Angleoperator= (const Angle &rhs)
Angleoperator+= (const Angle &rhs)
Angleoperator-= (const Angle &rhs)
Angle operator+ () const
Angle operator- () const
Angle operator+ (const Angle &rhs)
Angle operator+ (s32 rhs)
Angle operator- (const Angle &rhs)
Angle operator- (s32 rhs)
bool operator== (const Angle &rhs) const
bool operator== (s32 rhs) const
bool operator!= (const Angle &rhs) const
bool operator!= (s32 rhs) const
bool addCalcAngle (const Angle &target, f32 ratio, const Angle &max)
bool addCalcAngle (const Angle &target, f32 ratio, const Angle &max, const Angle &min)
bool chaseDecrease (const Angle &target, f32 ratio, const Angle &max, const Angle &min)
bool chaseRest (const Angle &target, const Angle &step)
bool chaseConstant (const Angle &target, const Angle &step)

Protected Member Functions

bool addCalcAngle_ (s32 target, s32 distance, f32 ratio, s32 max, s32 min)
bool chaseDecrease_ (s32 target, f32 ratio, s32 max, s32 min)
bool chaseRest_ (s32 target, s32 step)
bool chaseConstant_ (s32 target, s32 step)

Protected Attributes

s32 mValue

Constructor & Destructor Documentation

◆ Angle() [1/3]

Angle::Angle ( )
inline

◆ Angle() [2/3]

Angle::Angle ( s32 value)
inline

◆ Angle() [3/3]

Angle::Angle ( const Angle & other)
default

Member Function Documentation

◆ operator s32()

Angle::operator s32 ( ) const
inline

◆ operator=()

Angle & Angle::operator= ( const Angle & rhs)
inline

◆ operator+=()

Angle & Angle::operator+= ( const Angle & rhs)
inline

◆ operator-=()

Angle & Angle::operator-= ( const Angle & rhs)
inline

◆ operator+() [1/3]

Angle Angle::operator+ ( ) const
inline

◆ operator-() [1/3]

Angle Angle::operator- ( ) const
inline

◆ operator+() [2/3]

Angle Angle::operator+ ( const Angle & rhs)
inline

◆ operator+() [3/3]

Angle Angle::operator+ ( s32 rhs)
inline

◆ operator-() [2/3]

Angle Angle::operator- ( const Angle & rhs)
inline

◆ operator-() [3/3]

Angle Angle::operator- ( s32 rhs)
inline

◆ operator==() [1/2]

bool Angle::operator== ( const Angle & rhs) const
inline

◆ operator==() [2/2]

bool Angle::operator== ( s32 rhs) const
inline

◆ operator!=() [1/2]

bool Angle::operator!= ( const Angle & rhs) const
inline

◆ operator!=() [2/2]

bool Angle::operator!= ( s32 rhs) const
inline

◆ addCalcAngle() [1/2]

bool Angle::addCalcAngle ( const Angle & target,
f32 ratio,
const Angle & max )

◆ addCalcAngle() [2/2]

bool Angle::addCalcAngle ( const Angle & target,
f32 ratio,
const Angle & max,
const Angle & min )

◆ chaseDecrease()

bool Angle::chaseDecrease ( const Angle & target,
f32 ratio,
const Angle & max,
const Angle & min )

◆ chaseRest()

bool Angle::chaseRest ( const Angle & target,
const Angle & step )

◆ chaseConstant()

bool Angle::chaseConstant ( const Angle & target,
const Angle & step )

◆ addCalcAngle_()

bool Angle::addCalcAngle_ ( s32 target,
s32 distance,
f32 ratio,
s32 max,
s32 min )
protected

◆ chaseDecrease_()

bool Angle::chaseDecrease_ ( s32 target,
f32 ratio,
s32 max,
s32 min )
protected

◆ chaseRest_()

bool Angle::chaseRest_ ( s32 target,
s32 step )
protected

◆ chaseConstant_()

bool Angle::chaseConstant_ ( s32 target,
s32 step )
protected

Member Data Documentation

◆ mValue

s32 Angle::mValue
protected