NW4F G3d
Loading...
Searching...
No Matches
nw::g3d::math::Mtx44 Class Reference

#include <g3d_Matrix44.h>

Inherits nw::g3d::math::Mtx44_t.

Public Member Functions

Mtx44Set (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
Mtx44Set (const float *a)
Mtx44Set (const Mtx44 &m)
Mtx44Set (const Vec4 &x, const Vec4 &y, const Vec4 &z, const Vec4 &w)
Mtx44Zero ()
Mtx44Identity ()
Mtx44Neg (const Mtx44 &m)
Mtx44Add (const Mtx44 &lhs, const Mtx44 &rhs)
Mtx44Sub (const Mtx44 &lhs, const Mtx44 &rhs)
Mtx44Mul (const Mtx44 &lhs, const Mtx44 &rhs)
Mtx44Mul (const Mtx44 &lhs, float rhs)
Mtx44Mul (const Mtx44 &lhs, const Mtx34 &rhs)
Mtx44Mul (const Mtx34 &lhs, const Mtx44 &rhs)
Mtx44Div (const Mtx44 &lhs, float rhs)
Mtx44Adjugate (const Mtx44 &m)
Mtx44Inverse (float *pDet, const Mtx44 &m)
Mtx44Perspective (float fovy, float aspect, float n, float f)
Mtx44Ortho (float l, float r, float b, float t, float n, float f)

Static Public Member Functions

static Mtx44 Make (float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
static Mtx44Cast (float *a)
static const Mtx44Cast (const float *a)
static float Det (const Mtx44 &m)

Additional Inherited Members

Public Types inherited from nw::g3d::math::Mtx44_t
enum  { DIM_MAJOR = 4 , DIM_MINOR = 4 , DIM = DIM_MAJOR * DIM_MINOR , DIM_PS = DIM / 2 }
Public Attributes inherited from nw::g3d::math::Mtx44_t
union { 
   struct { 
      float   m00 
      float   m01 
      float   m02 
      float   m03 
      float   m10 
      float   m11 
      float   m12 
      float   m13 
      float   m20 
      float   m21 
      float   m22 
      float   m23 
      float   m30 
      float   m31 
      float   m32 
      float   m33 
   } 
   float   a [DIM
   float   m [DIM_MAJOR][DIM_MINOR
   Vec4   v [DIM_MAJOR
}; 

Member Function Documentation

◆ Make()

NW_G3D_MATH_INLINE Mtx44 nw::g3d::math::Mtx44::Make ( float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33 )
static

◆ Cast() [1/2]

NW_G3D_MATH_INLINE Mtx44 * nw::g3d::math::Mtx44::Cast ( float * a)
static

◆ Cast() [2/2]

NW_G3D_MATH_INLINE const Mtx44 * nw::g3d::math::Mtx44::Cast ( const float * a)
static

◆ Set() [1/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Set ( float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33 )

◆ Set() [2/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Set ( const float * a)

◆ Set() [3/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Set ( const Mtx44 & m)

◆ Set() [4/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Set ( const Vec4 & x,
const Vec4 & y,
const Vec4 & z,
const Vec4 & w )

◆ Zero()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Zero ( )

◆ Identity()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Identity ( )

◆ Neg()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Neg ( const Mtx44 & m)

◆ Add()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Add ( const Mtx44 & lhs,
const Mtx44 & rhs )

◆ Sub()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Sub ( const Mtx44 & lhs,
const Mtx44 & rhs )

◆ Mul() [1/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Mul ( const Mtx44 & lhs,
const Mtx44 & rhs )

◆ Mul() [2/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Mul ( const Mtx44 & lhs,
float rhs )

◆ Mul() [3/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Mul ( const Mtx44 & lhs,
const Mtx34 & rhs )

◆ Mul() [4/4]

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Mul ( const Mtx34 & lhs,
const Mtx44 & rhs )

◆ Div()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Div ( const Mtx44 & lhs,
float rhs )

◆ Det()

NW_G3D_MATH_INLINE float nw::g3d::math::Mtx44::Det ( const Mtx44 & m)
static

◆ Adjugate()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Adjugate ( const Mtx44 & m)

◆ Inverse()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Inverse ( float * pDet,
const Mtx44 & m )

◆ Perspective()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Perspective ( float fovy,
float aspect,
float n,
float f )

◆ Ortho()

NW_G3D_MATH_INLINE Mtx44 & nw::g3d::math::Mtx44::Ortho ( float l,
float r,
float b,
float t,
float n,
float f )