PeriDyno 1.0.0
Loading...
Searching...
No Matches
vgm::Mat4 Class Reference

#include <vgMath.h>

Public Member Functions

 Mat4 ()=default
 
 Mat4 (T s)
 
 Mat4 (const VEC4_T &v0, const VEC4_T &v1, const VEC4_T &v2, const VEC4_T &v3)
 
 Mat4 (const MAT3_T &m)
 
 Mat4 (T v0x, T v0y, T v0z, T v0w, T v1x, T v1y, T v1z, T v1w, T v2x, T v2y, T v2z, T v2w, T v3x, T v3y, T v3z, T v3w)
 
const VEC4_Toperator[] (int i) const
 
VEC4_Toperator[] (int i)
 
Mat4 operator- () const
 
Mat4operator+= (const Mat4 &m)
 
Mat4operator-= (const Mat4 &m)
 
Mat4operator/= (const Mat4 &m)
 
Mat4operator*= (T s)
 
Mat4operator/= (T s)
 
Mat4operator*= (const Mat4 &m)
 
Mat4 operator+ (const Mat4 &m) const
 
Mat4 operator- (const Mat4 &m) const
 
Mat4 operator* (T s) const
 
Mat4 operator/ (T s) const
 
Mat4 operator* (const Mat4 &m) const
 
VEC4_T operator* (const VEC4_T &v) const
 
 operator const T * () const
 
 operator T* ()
 

Public Attributes

union { 
 
   VEC4_T   v [4] 
 
   struct { 
 
      T   m00 
 
      T   m01 
 
      T   m02 
 
      T   m03 
 
      T   m10 
 
      T   m11 
 
      T   m12 
 
      T   m13 
 
      T   m20 
 
      T   m21 
 
      T   m22 
 
      T   m23 
 
      T   m30 
 
      T   m31 
 
      T   m32 
 
      T   m33 
 
   }  
 
};  
 

Detailed Description

Definition at line 313 of file vgMath.h.

Constructor & Destructor Documentation

◆ Mat4() [1/5]

vgm::Mat4::Mat4 ( )
default
Here is the caller graph for this function:

◆ Mat4() [2/5]

vgm::Mat4::Mat4 ( T s)
inlineexplicit

Definition at line 324 of file vgMath.h.

◆ Mat4() [3/5]

vgm::Mat4::Mat4 ( const VEC4_T & v0,
const VEC4_T & v1,
const VEC4_T & v2,
const VEC4_T & v3 )
inline

Definition at line 325 of file vgMath.h.

◆ Mat4() [4/5]

vgm::Mat4::Mat4 ( const MAT3_T & m)
inline

Definition at line 326 of file vgMath.h.

◆ Mat4() [5/5]

vgm::Mat4::Mat4 ( T v0x,
T v0y,
T v0z,
T v0w,
T v1x,
T v1y,
T v1z,
T v1w,
T v2x,
T v2y,
T v2z,
T v2w,
T v3x,
T v3y,
T v3z,
T v3w )
inline

Definition at line 327 of file vgMath.h.

Member Function Documentation

◆ operator const T *()

vgm::Mat4::operator const T * ( ) const
inlineexplicit

Definition at line 370 of file vgMath.h.

◆ operator T*()

vgm::Mat4::operator T* ( )
inlineexplicit

Definition at line 371 of file vgMath.h.

◆ operator*() [1/3]

Mat4 vgm::Mat4::operator* ( const Mat4 & m) const
inline

Definition at line 349 of file vgMath.h.

Here is the call graph for this function:

◆ operator*() [2/3]

VEC4_T vgm::Mat4::operator* ( const VEC4_T & v) const
inline

Definition at line 366 of file vgMath.h.

◆ operator*() [3/3]

Mat4 vgm::Mat4::operator* ( T s) const
inline

Definition at line 346 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [1/2]

Mat4 & vgm::Mat4::operator*= ( const Mat4 & m)
inline

Definition at line 342 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [2/2]

Mat4 & vgm::Mat4::operator*= ( T s)
inline

Definition at line 340 of file vgMath.h.

Here is the call graph for this function:

◆ operator+()

Mat4 vgm::Mat4::operator+ ( const Mat4 & m) const
inline

Definition at line 344 of file vgMath.h.

Here is the call graph for this function:

◆ operator+=()

Mat4 & vgm::Mat4::operator+= ( const Mat4 & m)
inline

Definition at line 337 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [1/2]

Mat4 vgm::Mat4::operator- ( ) const
inline

Definition at line 335 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [2/2]

Mat4 vgm::Mat4::operator- ( const Mat4 & m) const
inline

Definition at line 345 of file vgMath.h.

Here is the call graph for this function:

◆ operator-=()

Mat4 & vgm::Mat4::operator-= ( const Mat4 & m)
inline

Definition at line 338 of file vgMath.h.

Here is the call graph for this function:

◆ operator/()

Mat4 vgm::Mat4::operator/ ( T s) const
inline

Definition at line 347 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [1/2]

Mat4 & vgm::Mat4::operator/= ( const Mat4 & m)
inline

Definition at line 339 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [2/2]

Mat4 & vgm::Mat4::operator/= ( T s)
inline

Definition at line 341 of file vgMath.h.

Here is the call graph for this function:

◆ operator[]() [1/2]

VEC4_T & vgm::Mat4::operator[] ( int i)
inline

Definition at line 333 of file vgMath.h.

◆ operator[]() [2/2]

const VEC4_T & vgm::Mat4::operator[] ( int i) const
inline

Definition at line 332 of file vgMath.h.

Member Data Documentation

◆ [union]

union { ... } vgm::Mat4

◆ m00

T vgm::Mat4::m00

Definition at line 317 of file vgMath.h.

◆ m01

T vgm::Mat4::m01

Definition at line 317 of file vgMath.h.

◆ m02

T vgm::Mat4::m02

Definition at line 317 of file vgMath.h.

◆ m03

T vgm::Mat4::m03

Definition at line 317 of file vgMath.h.

◆ m10

T vgm::Mat4::m10

Definition at line 318 of file vgMath.h.

◆ m11

T vgm::Mat4::m11

Definition at line 318 of file vgMath.h.

◆ m12

T vgm::Mat4::m12

Definition at line 318 of file vgMath.h.

◆ m13

T vgm::Mat4::m13

Definition at line 318 of file vgMath.h.

◆ m20

T vgm::Mat4::m20

Definition at line 319 of file vgMath.h.

◆ m21

T vgm::Mat4::m21

Definition at line 319 of file vgMath.h.

◆ m22

T vgm::Mat4::m22

Definition at line 319 of file vgMath.h.

◆ m23

T vgm::Mat4::m23

Definition at line 319 of file vgMath.h.

◆ m30

T vgm::Mat4::m30

Definition at line 320 of file vgMath.h.

◆ m31

T vgm::Mat4::m31

Definition at line 320 of file vgMath.h.

◆ m32

T vgm::Mat4::m32

Definition at line 320 of file vgMath.h.

◆ m33

T vgm::Mat4::m33

Definition at line 320 of file vgMath.h.

◆ v

VEC4_T vgm::Mat4::v[4]

Definition at line 316 of file vgMath.h.


The documentation for this class was generated from the following file: