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

#include <game/mLib/m_vec.hpp>

Inheritance diagram for mVec2_c:
[legend]

Description

A two-dimensional floating point vector.

Definition at line 16 of file m_vec.hpp.

Public Member Functions

 mVec2_c ()
 Constructs an empty vector.
 mVec2_c (const f32 *p)
 Constructs a vector from a float array.
 mVec2_c (f32 fx, f32 fy)
 Constructs a vector from two floating point values.
 mVec2_c (const mVec2_c &v)
 Copy constructor.
void set (float x, float y)
void incX (float x)
 Increments the X coordinate.
void incY (float y)
 Increments the Y coordinate.
mVec2_coperator= (const mVec2_c &v)
 operator f32 * ()
 Float cast operator.
 operator const f32 * () const
 Const float cast operator.
 operator Vec2 * ()
 Vec2 cast operator.
 operator const Vec2 * () const
 Const Vec2 cast operator.
 operator nw4r::math::VEC2 * ()
 nw4r::math::VEC2 cast operator.
 operator const nw4r::math::VEC2 * () const
 Const nw4r::math::VEC2 cast operator.
mVec2_coperator+= (const mVec2_c &v)
 Augmented addition operator.
mVec2_coperator-= (const mVec2_c &v)
 Augmented subtraction operator.
mVec2_coperator*= (f32 f)
 Augmented scalar product operator.
mVec2_coperator/= (f32 f)
 Augmented scalar division operator.
mVec2_c operator+ () const
 Positive operator.
mVec2_c operator- () const
 Negative operator.
mVec2_c operator+ (const mVec2_c &v) const
 Addition operator.
mVec2_c operator- (const mVec2_c &v) const
 Subtraction operator.
mVec2_c operator* (f32 f) const
 Scalar product operator.
mVec2_c operator/ (f32 f) const
 Scalar division operator.
bool operator== (const mVec2_c &v) const
 Equality operator.
bool operator!= (const mVec2_c &v) const
 Inequality operator.

Constructor & Destructor Documentation

◆ mVec2_c() [1/4]

mVec2_c::mVec2_c ( )
inline

Constructs an empty vector.

Definition at line 20 of file m_vec.hpp.

◆ ~mVec2_c()

mVec2_c::~mVec2_c ( )
inline

Definition at line 22 of file m_vec.hpp.

◆ mVec2_c() [2/4]

mVec2_c::mVec2_c ( const f32 * p)
inline

Constructs a vector from a float array.

Definition at line 25 of file m_vec.hpp.

◆ mVec2_c() [3/4]

mVec2_c::mVec2_c ( f32 fx,
f32 fy )
inline

Constructs a vector from two floating point values.

Definition at line 28 of file m_vec.hpp.

◆ mVec2_c() [4/4]

mVec2_c::mVec2_c ( const mVec2_c & v)
inline

Copy constructor.

Definition at line 31 of file m_vec.hpp.

Member Function Documentation

◆ set()

void mVec2_c::set ( float x,
float y )
inline

Definition at line 33 of file m_vec.hpp.

◆ incX()

void mVec2_c::incX ( float x)
inline

Increments the X coordinate.

Parameters
xThe value to increment by.

Definition at line 40 of file m_vec.hpp.

◆ incY()

void mVec2_c::incY ( float y)
inline

Increments the Y coordinate.

Parameters
yThe value to increment by.

Definition at line 44 of file m_vec.hpp.

◆ operator=()

mVec2_c & mVec2_c::operator= ( const mVec2_c & v)
inline

Definition at line 47 of file m_vec.hpp.

◆ operator f32 *()

mVec2_c::operator f32 * ( )
inline

Float cast operator.

Definition at line 50 of file m_vec.hpp.

◆ operator const f32 *()

mVec2_c::operator const f32 * ( ) const
inline

Const float cast operator.

Definition at line 53 of file m_vec.hpp.

◆ operator Vec2 *()

mVec2_c::operator Vec2 * ( )
inline

Vec2 cast operator.

Definition at line 56 of file m_vec.hpp.

◆ operator const Vec2 *()

mVec2_c::operator const Vec2 * ( ) const
inline

Const Vec2 cast operator.

Definition at line 59 of file m_vec.hpp.

◆ operator nw4r::math::VEC2 *()

mVec2_c::operator nw4r::math::VEC2 * ( )
inline

nw4r::math::VEC2 cast operator.

Definition at line 62 of file m_vec.hpp.

◆ operator const nw4r::math::VEC2 *()

mVec2_c::operator const nw4r::math::VEC2 * ( ) const
inline

Const nw4r::math::VEC2 cast operator.

Definition at line 65 of file m_vec.hpp.

◆ operator+=()

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

Augmented addition operator.

Definition at line 68 of file m_vec.hpp.

◆ operator-=()

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

Augmented subtraction operator.

Definition at line 71 of file m_vec.hpp.

◆ operator*=()

mVec2_c & mVec2_c::operator*= ( f32 f)
inline

Augmented scalar product operator.

Definition at line 74 of file m_vec.hpp.

◆ operator/=()

mVec2_c & mVec2_c::operator/= ( f32 f)
inline

Augmented scalar division operator.

Definition at line 77 of file m_vec.hpp.

◆ operator+() [1/2]

mVec2_c mVec2_c::operator+ ( ) const
inline

Positive operator.

Definition at line 80 of file m_vec.hpp.

◆ operator-() [1/2]

mVec2_c mVec2_c::operator- ( ) const
inline

Negative operator.

Definition at line 83 of file m_vec.hpp.

◆ operator+() [2/2]

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

Addition operator.

Definition at line 86 of file m_vec.hpp.

◆ operator-() [2/2]

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

Subtraction operator.

Definition at line 89 of file m_vec.hpp.

◆ operator*()

mVec2_c mVec2_c::operator* ( f32 f) const
inline

Scalar product operator.

Definition at line 92 of file m_vec.hpp.

◆ operator/()

mVec2_c mVec2_c::operator/ ( f32 f) const
inline

Scalar division operator.

Definition at line 95 of file m_vec.hpp.

◆ operator==()

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

Equality operator.

Definition at line 98 of file m_vec.hpp.

◆ operator!=()

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

Inequality operator.

Definition at line 101 of file m_vec.hpp.