NW4F Sys
Loading...
Searching...
No Matches
nw::math::MTX34 Struct Reference

#include <math_Matrix34.h>

Inherits nw::math::MTX34_.

Public Types

typedef MTX34 self_type
typedef f32 value_type

Public Member Functions

 MTX34 ()
 MTX34 (const f32 *p)
 MTX34 (const MTX34 &rhs)
MTX34operator= (const MTX34 &other)=default
 MTX34 (f32 x00, f32 x01, f32 x02, f32 x03, f32 x10, f32 x11, f32 x12, f32 x13, f32 x20, f32 x21, f32 x22, f32 x23)
 operator f32 * ()
 operator const f32 * () const
f32 * ToF32 ()
const f32 * ToF32 () const
VEC4GetRow (int index)
const VEC4GetRow (int index) const
VEC3 GetColumn (int index) const
void SetColumn (int index, const VEC3 &column)
self_typeoperator+= (const self_type &rhs)
self_typeoperator-= (const self_type &rhs)
self_typeoperator*= (f32 x)
self_typeoperator/= (f32 x)
self_type operator+ () const
self_type operator- () const
self_type operator+ (const self_type &rhs) const
self_type operator- (const self_type &rhs) const
self_type operator* (f32 x) const
self_type operator/ (f32 x) const
self_typeTranspose ()
self_typeSetInverse (const MTX34 &mtx)
self_typeInverse ()
self_typeSetMult (const MTX34 &lhs, const MTX34 &rhs)
self_typeSetIdentity ()
self_typeSetScale (const VEC3 &scale)
self_typeSetTranslate (const VEC3 &translate)
self_typeSetRotateXyz (const VEC3 &rotate)
self_typeSetRotate (const VEC3 &axis, f32 theta)
self_typeSetRotate (const QUAT &quaternion)
self_typeSetLookAt (const VEC3 &camPos, const VEC3 &camUp, const VEC3 &target)
self_typeSetLookAt (const VEC3 &camPos, f32 twist, const VEC3 &target)
self_typeSetCameraRotate (const VEC3 &camPos, const VEC3 &camRotate)
self_typeSetTextureProjectionFrustum (f32 l, f32 r, f32 b, f32 t, f32 n, f32 scaleS, f32 scaleT, f32 translateS, f32 translateT)
self_typeSetTextureProjectionPerspective (f32 fovy, f32 aspect, f32 scaleS, f32 scaleT, f32 translateS, f32 translateT)
self_typeSetTextureProjectionOrtho (f32 l, f32 r, f32 b, f32 t, f32 scaleS, f32 scaleT, f32 translateS, f32 translateT)
self_typeSetSRTMtx (const VEC3 &s, const VEC3 &r, const VEC3 &t)
self_typeSetSTMtx (const VEC3 &s, const VEC3 &t)
self_typeSetSMtx (const VEC3 &s)
bool operator== (const self_type &rhs) const
bool operator!= (const self_type &rhs) const
bool IsIdentity () const

Static Public Member Functions

static const MTX34Identity ()
template<typename FromPtr>
static MTX34CastFrom (FromPtr *fromPtr)
template<typename FromPtr>
static const MTX34CastFrom (const FromPtr *fromPtr)
template<typename FromPtr>
static MTX34CastFrom (FromPtr &fromPtr)
template<typename FromPtr>
static const MTX34CastFrom (const FromPtr &fromPtr)

Static Public Attributes

static const int ROW_COUNT = 3
static const int COLUMN_COUNT = 4

Additional Inherited Members

Public Attributes inherited from nw::math::MTX34_
union { 
   struct { 
      f32   _00 
      f32   _01 
      f32   _02 
      f32   _03 
      f32   _10 
      f32   _11 
      f32   _12 
      f32   _13 
      f32   _20 
      f32   _21 
      f32   _22 
      f32   _23 
   } 
   BaseData   f 
   f32   m [3][4] 
   f32   a [12] 
   VEC4_   v [3] 
}; 

Member Typedef Documentation

◆ self_type

◆ value_type

Constructor & Destructor Documentation

◆ MTX34() [1/4]

nw::math::MTX34::MTX34 ( )
inline

◆ MTX34() [2/4]

nw::math::MTX34::MTX34 ( const f32 * p)
inlineexplicit

◆ MTX34() [3/4]

nw::math::MTX34::MTX34 ( const MTX34 & rhs)
inline

◆ MTX34() [4/4]

nw::math::MTX34::MTX34 ( f32 x00,
f32 x01,
f32 x02,
f32 x03,
f32 x10,
f32 x11,
f32 x12,
f32 x13,
f32 x20,
f32 x21,
f32 x22,
f32 x23 )
inline

Member Function Documentation

◆ Identity()

const MTX34 & nw::math::MTX34::Identity ( )
inlinestatic

◆ operator=()

MTX34 & nw::math::MTX34::operator= ( const MTX34 & other)
default

◆ operator f32 *()

nw::math::MTX34::operator f32 * ( )
inline

◆ operator const f32 *()

nw::math::MTX34::operator const f32 * ( ) const
inline

◆ ToF32() [1/2]

f32 * nw::math::MTX34::ToF32 ( )
inline

◆ ToF32() [2/2]

const f32 * nw::math::MTX34::ToF32 ( ) const
inline

◆ CastFrom() [1/4]

template<typename FromPtr>
MTX34 * nw::math::MTX34::CastFrom ( FromPtr * fromPtr)
inlinestatic

◆ CastFrom() [2/4]

template<typename FromPtr>
const MTX34 * nw::math::MTX34::CastFrom ( const FromPtr * fromPtr)
inlinestatic

◆ CastFrom() [3/4]

template<typename FromPtr>
MTX34 & nw::math::MTX34::CastFrom ( FromPtr & fromPtr)
inlinestatic

◆ CastFrom() [4/4]

template<typename FromPtr>
const MTX34 & nw::math::MTX34::CastFrom ( const FromPtr & fromPtr)
inlinestatic

◆ GetRow() [1/2]

VEC4 & nw::math::MTX34::GetRow ( int index)
inline

◆ GetRow() [2/2]

const VEC4 & nw::math::MTX34::GetRow ( int index) const
inline

◆ GetColumn()

VEC3 nw::math::MTX34::GetColumn ( int index) const
inline

◆ SetColumn()

void nw::math::MTX34::SetColumn ( int index,
const VEC3 & column )
inline

◆ operator+=()

self_type & nw::math::MTX34::operator+= ( const self_type & rhs)
inline

◆ operator-=()

self_type & nw::math::MTX34::operator-= ( const self_type & rhs)
inline

◆ operator*=()

self_type & nw::math::MTX34::operator*= ( f32 x)
inline

◆ operator/=()

self_type & nw::math::MTX34::operator/= ( f32 x)
inline

◆ operator+() [1/2]

self_type nw::math::MTX34::operator+ ( ) const
inline

◆ operator-() [1/2]

self_type nw::math::MTX34::operator- ( ) const
inline

◆ operator+() [2/2]

self_type nw::math::MTX34::operator+ ( const self_type & rhs) const
inline

◆ operator-() [2/2]

self_type nw::math::MTX34::operator- ( const self_type & rhs) const
inline

◆ operator*()

self_type nw::math::MTX34::operator* ( f32 x) const
inline

◆ operator/()

self_type nw::math::MTX34::operator/ ( f32 x) const
inline

◆ Transpose()

self_type & nw::math::MTX34::Transpose ( )
inline

◆ SetInverse()

self_type & nw::math::MTX34::SetInverse ( const MTX34 & mtx)
inline

◆ Inverse()

self_type & nw::math::MTX34::Inverse ( )
inline

◆ SetMult()

self_type & nw::math::MTX34::SetMult ( const MTX34 & lhs,
const MTX34 & rhs )
inline

◆ SetIdentity()

self_type & nw::math::MTX34::SetIdentity ( )
inline

◆ SetScale()

self_type & nw::math::MTX34::SetScale ( const VEC3 & scale)
inline

◆ SetTranslate()

self_type & nw::math::MTX34::SetTranslate ( const VEC3 & translate)
inline

◆ SetRotateXyz()

self_type & nw::math::MTX34::SetRotateXyz ( const VEC3 & rotate)
inline

◆ SetRotate() [1/2]

self_type & nw::math::MTX34::SetRotate ( const VEC3 & axis,
f32 theta )
inline

◆ SetRotate() [2/2]

self_type & nw::math::MTX34::SetRotate ( const QUAT & quaternion)
inline

◆ SetLookAt() [1/2]

self_type & nw::math::MTX34::SetLookAt ( const VEC3 & camPos,
const VEC3 & camUp,
const VEC3 & target )
inline

◆ SetLookAt() [2/2]

self_type & nw::math::MTX34::SetLookAt ( const VEC3 & camPos,
f32 twist,
const VEC3 & target )
inline

◆ SetCameraRotate()

self_type & nw::math::MTX34::SetCameraRotate ( const VEC3 & camPos,
const VEC3 & camRotate )
inline

◆ SetTextureProjectionFrustum()

self_type & nw::math::MTX34::SetTextureProjectionFrustum ( f32 l,
f32 r,
f32 b,
f32 t,
f32 n,
f32 scaleS,
f32 scaleT,
f32 translateS,
f32 translateT )
inline

◆ SetTextureProjectionPerspective()

self_type & nw::math::MTX34::SetTextureProjectionPerspective ( f32 fovy,
f32 aspect,
f32 scaleS,
f32 scaleT,
f32 translateS,
f32 translateT )
inline

◆ SetTextureProjectionOrtho()

self_type & nw::math::MTX34::SetTextureProjectionOrtho ( f32 l,
f32 r,
f32 b,
f32 t,
f32 scaleS,
f32 scaleT,
f32 translateS,
f32 translateT )
inline

◆ SetSRTMtx()

self_type & nw::math::MTX34::SetSRTMtx ( const VEC3 & s,
const VEC3 & r,
const VEC3 & t )
inline

◆ SetSTMtx()

self_type & nw::math::MTX34::SetSTMtx ( const VEC3 & s,
const VEC3 & t )
inline

◆ SetSMtx()

self_type & nw::math::MTX34::SetSMtx ( const VEC3 & s)
inline

◆ operator==()

bool nw::math::MTX34::operator== ( const self_type & rhs) const
inline

◆ operator!=()

bool nw::math::MTX34::operator!= ( const self_type & rhs) const
inline

◆ IsIdentity()

bool nw::math::MTX34::IsIdentity ( ) const
inline

Member Data Documentation

◆ ROW_COUNT

const int nw::math::MTX34::ROW_COUNT = 3
static

◆ COLUMN_COUNT

const int nw::math::MTX34::COLUMN_COUNT = 4
static