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

#include <vgMath.h>

Public Member Functions

 Mat3 ()=default
 
 Mat3 (const MAT3_T &)=default
 
 Mat3 (T s)
 
 Mat3 (const VEC3_T &v0, const VEC3_T &v1, const VEC3_T &v2)
 
 Mat3 (const MAT4_T &m)
 
 Mat3 (T v0x, T v0y, T v0z, T v1x, T v1y, T v1z, T v2x, T v2y, T v2z)
 
const VEC3_Toperator[] (int i) const
 
VEC3_Toperator[] (int i)
 
Mat3 operator- () const
 
Mat3operator+= (const Mat3 &m)
 
Mat3operator-= (const Mat3 &m)
 
Mat3operator/= (const Mat3 &m)
 
Mat3operator*= (T s)
 
Mat3operator/= (T s)
 
Mat3operator*= (const Mat3 &m)
 
Mat3 operator+ (const Mat3 &m) const
 
Mat3 operator- (const Mat3 &m) const
 
Mat3 operator* (const Mat3 &m) const
 
Mat3 operator* (T s) const
 
Mat3 operator/ (T s) const
 
VEC3_T operator* (const VEC3_T &v) const
 
 operator const T * () const
 
 operator T* ()
 

Public Attributes

union { 
 
   VEC3_T   v [3] 
 
   struct { 
 
      T   m00 
 
      T   m01 
 
      T   m02 
 
      T   m10 
 
      T   m11 
 
      T   m12 
 
      T   m20 
 
      T   m21 
 
      T   m22 
 
   }  
 
};  
 

Detailed Description

Definition at line 259 of file vgMath.h.

Constructor & Destructor Documentation

◆ Mat3() [1/6]

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

◆ Mat3() [2/6]

vgm::Mat3::Mat3 ( const MAT3_T & )
default

◆ Mat3() [3/6]

vgm::Mat3::Mat3 ( T s)
inlineexplicit

Definition at line 270 of file vgMath.h.

◆ Mat3() [4/6]

vgm::Mat3::Mat3 ( const VEC3_T & v0,
const VEC3_T & v1,
const VEC3_T & v2 )
inline

Definition at line 271 of file vgMath.h.

◆ Mat3() [5/6]

vgm::Mat3::Mat3 ( const MAT4_T & m)

◆ Mat3() [6/6]

vgm::Mat3::Mat3 ( T v0x,
T v0y,
T v0z,
T v1x,
T v1y,
T v1z,
T v2x,
T v2y,
T v2z )
inline

Definition at line 273 of file vgMath.h.

Member Function Documentation

◆ operator const T *()

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

Definition at line 308 of file vgMath.h.

◆ operator T*()

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

Definition at line 309 of file vgMath.h.

◆ operator*() [1/3]

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

Definition at line 292 of file vgMath.h.

Here is the call graph for this function:

◆ operator*() [2/3]

VEC3_T vgm::Mat3::operator* ( const VEC3_T & v) const
inline

Definition at line 305 of file vgMath.h.

◆ operator*() [3/3]

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

Definition at line 302 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [1/2]

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

Definition at line 287 of file vgMath.h.

Here is the call graph for this function:

◆ operator*=() [2/2]

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

Definition at line 285 of file vgMath.h.

Here is the call graph for this function:

◆ operator+()

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

Definition at line 289 of file vgMath.h.

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 282 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [1/2]

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

Definition at line 280 of file vgMath.h.

Here is the call graph for this function:

◆ operator-() [2/2]

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

Definition at line 290 of file vgMath.h.

Here is the call graph for this function:

◆ operator-=()

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

Definition at line 283 of file vgMath.h.

Here is the call graph for this function:

◆ operator/()

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

Definition at line 303 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [1/2]

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

Definition at line 284 of file vgMath.h.

Here is the call graph for this function:

◆ operator/=() [2/2]

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

Definition at line 286 of file vgMath.h.

Here is the call graph for this function:

◆ operator[]() [1/2]

VEC3_T & vgm::Mat3::operator[] ( int i)
inline

Definition at line 278 of file vgMath.h.

◆ operator[]() [2/2]

const VEC3_T & vgm::Mat3::operator[] ( int i) const
inline

Definition at line 277 of file vgMath.h.

Member Data Documentation

◆ [union]

union { ... } vgm::Mat3

◆ m00

T vgm::Mat3::m00

Definition at line 263 of file vgMath.h.

◆ m01

T vgm::Mat3::m01

Definition at line 263 of file vgMath.h.

◆ m02

T vgm::Mat3::m02

Definition at line 263 of file vgMath.h.

◆ m10

T vgm::Mat3::m10

Definition at line 264 of file vgMath.h.

◆ m11

T vgm::Mat3::m11

Definition at line 264 of file vgMath.h.

◆ m12

T vgm::Mat3::m12

Definition at line 264 of file vgMath.h.

◆ m20

T vgm::Mat3::m20

Definition at line 265 of file vgMath.h.

◆ m21

T vgm::Mat3::m21

Definition at line 265 of file vgMath.h.

◆ m22

T vgm::Mat3::m22

Definition at line 265 of file vgMath.h.

◆ v

VEC3_T vgm::Mat3::v[3]

Definition at line 262 of file vgMath.h.


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