DGLE2   Young, strong and crazy!
Public Member Functions | Public Attributes | List of all members
TMatrix4x4 Struct Reference

Describes 4x4 matrix and some math routines used in 3D graphics computes. More...

#include <DGLE_Types.h>

Public Member Functions

 TMatrix4x4 ()
 
 TMatrix4x4 (float _00, float _01, float _02, float _03, float _10, float _11, float _12, float _13, float _20, float _21, float _22, float _23, float _30, float _31, float _32, float _33)
 
TMatrix4x4operator+= (float right)
 
TMatrix4x4operator-= (float right)
 
TMatrix4x4operator*= (float right)
 
TMatrix4x4operator/= (float right)
 
TMatrix4x4operator+= (const TMatrix4x4 &right)
 
TMatrix4x4operator-= (const TMatrix4x4 &right)
 
TMatrix4x4operator*= (const TMatrix4x4 &right)
 
TMatrix4x4 operator+ (float right) const
 
TMatrix4x4 operator- (float right) const
 
TMatrix4x4 operator* (float right) const
 
TMatrix4x4 operator/ (float right) const
 
TMatrix4x4 operator+ (const TMatrix4x4 &right) const
 
TMatrix4x4 operator- (const TMatrix4x4 &right) const
 
FORCEINLINE TMatrix4x4 operator* (const TMatrix4x4 &right) const
 
TPoint3 ApplyToPoint (const TPoint3 &stPoint) const
 
TPoint2 ApplyToPoint (const TPoint2 &stPoint) const
 
TPoint3 ApplyToVector (const TPoint3 &stPoint) const
 
void Decompose (TPoint3 &stScale, TMatrix4x4 &stRotation, TPoint3 &stTranslation)
 

Public Attributes

union {
   float   _1D [16]
 
   float   _2D [4][4]
 
}; 
 

Detailed Description

Describes 4x4 matrix and some math routines used in 3D graphics computes.

Warning
In engine matrices are stored per lines. Like in Direct3D and unlike it in OpenGL. So keep it in mind when using them directly via GAPI.

Constructor & Destructor Documentation

TMatrix4x4 ( )
inline
TMatrix4x4 ( float  _00,
float  _01,
float  _02,
float  _03,
float  _10,
float  _11,
float  _12,
float  _13,
float  _20,
float  _21,
float  _22,
float  _23,
float  _30,
float  _31,
float  _32,
float  _33 
)
inline

Member Function Documentation

TPoint3 ApplyToPoint ( const TPoint3 stPoint) const
inline
TPoint2 ApplyToPoint ( const TPoint2 stPoint) const
inline
TPoint3 ApplyToVector ( const TPoint3 stPoint) const
inline
void Decompose ( TPoint3 stScale,
TMatrix4x4 stRotation,
TPoint3 stTranslation 
)
inline
TMatrix4x4 operator* ( float  right) const
inline
FORCEINLINE TMatrix4x4 operator* ( const TMatrix4x4 right) const
inline
TMatrix4x4& operator*= ( float  right)
inline
TMatrix4x4& operator*= ( const TMatrix4x4 right)
inline
TMatrix4x4 operator+ ( float  right) const
inline
TMatrix4x4 operator+ ( const TMatrix4x4 right) const
inline
TMatrix4x4& operator+= ( float  right)
inline
TMatrix4x4& operator+= ( const TMatrix4x4 right)
inline
TMatrix4x4 operator- ( float  right) const
inline
TMatrix4x4 operator- ( const TMatrix4x4 right) const
inline
TMatrix4x4& operator-= ( float  right)
inline
TMatrix4x4& operator-= ( const TMatrix4x4 right)
inline
TMatrix4x4 operator/ ( float  right) const
inline
TMatrix4x4& operator/= ( float  right)
inline

Member Data Documentation

union { ... }
float _1D[16]
float _2D[4][4]

Sun Nov 16 2014 09:47:30   Generated by   doxygen   Content copyrighted to DGLE Team