MaxstARSDK
gl_helper::Mat4 Class Reference

#include <vecmath.h>

Collaboration diagram for gl_helper::Mat4:
Collaboration graph

Public Member Functions

 Mat4 ()
 
 Mat4 (const float *mIn)
 
Mat4 operator* (const Mat4 &rhs) const
 
Vec4 operator* (const Vec4 &rhs) const
 
Mat4 operator+ (const Mat4 &rhs) const
 
Mat4 operator- (const Mat4 &rhs) const
 
Mat4operator+= (const Mat4 &rhs)
 
Mat4operator-= (const Mat4 &rhs)
 
Mat4operator*= (const Mat4 &rhs)
 
Mat4 operator* (const float rhs)
 
Mat4operator*= (const float rhs)
 
Mat4operator= (const Mat4 &rhs)
 
Mat4 Inverse ()
 
Mat4 Transpose ()
 
Mat4PostTranslate (float tx, float ty, float tz)
 
Mat4PostRotate (float angle, float rx, float ry, float rz)
 
Mat4PostScale (float sx, float sy, float sz)
 
float * Ptr ()
 
void Dump ()
 

Static Public Member Functions

static Mat4 Perspective (float width, float height, float nearPlane, float farPlane)
 
static Mat4 Perspective (float fovy, int width, int height, float zNear, float zFar)
 
static Mat4 Perspective (float fx, float fy, float cx, float cy, int w, int h, float n, float f)
 
static Mat4 Ortho (float left, float right, float bottom, float top, float nearPlane, float farPlane)
 
static Mat4 LookAt (const Vec3 &vec_eye, const Vec3 &vec_at, const Vec3 &vec_up)
 
static Mat4 Translation (const float fX, const float fY, const float fZ)
 
static Mat4 Translation (const Vec3 vec)
 
static Mat4 RotationX (const float fAngle)
 
static Mat4 RotationY (const float fAngle)
 
static Mat4 RotationZ (const float fAngle)
 
static Mat4 Scale (const float fX, const float fY, const float fZ)
 
static Mat4 Identity ()
 
static Mat4 Zero ()
 

Friends

class Vec3
 
class Vec4
 
class Quaternion
 

Constructor & Destructor Documentation

◆ Mat4() [1/2]

gl_helper::Mat4::Mat4 ( )
inline

◆ Mat4() [2/2]

gl_helper::Mat4::Mat4 ( const float *  mIn)
inline

Member Function Documentation

◆ Dump()

void gl_helper::Mat4::Dump ( )
inline

◆ Identity()

static Mat4 gl_helper::Mat4::Identity ( )
inlinestatic

◆ Inverse()

Mat4 gl_helper::Mat4::Inverse ( )
inline

◆ LookAt()

static Mat4 gl_helper::Mat4::LookAt ( const Vec3 vec_eye,
const Vec3 vec_at,
const Vec3 vec_up 
)
inlinestatic
Here is the call graph for this function:

◆ operator*() [1/3]

Mat4 gl_helper::Mat4::operator* ( const Mat4 rhs) const
inline

◆ operator*() [2/3]

Vec4 gl_helper::Mat4::operator* ( const Vec4 rhs) const
inline

◆ operator*() [3/3]

Mat4 gl_helper::Mat4::operator* ( const float  rhs)
inline

◆ operator*=() [1/2]

Mat4& gl_helper::Mat4::operator*= ( const Mat4 rhs)
inline

◆ operator*=() [2/2]

Mat4& gl_helper::Mat4::operator*= ( const float  rhs)
inline

◆ operator+()

Mat4 gl_helper::Mat4::operator+ ( const Mat4 rhs) const
inline

◆ operator+=()

Mat4& gl_helper::Mat4::operator+= ( const Mat4 rhs)
inline

◆ operator-()

Mat4 gl_helper::Mat4::operator- ( const Mat4 rhs) const
inline

◆ operator-=()

Mat4& gl_helper::Mat4::operator-= ( const Mat4 rhs)
inline

◆ operator=()

Mat4& gl_helper::Mat4::operator= ( const Mat4 rhs)
inline

◆ Ortho()

static Mat4 gl_helper::Mat4::Ortho ( float  left,
float  right,
float  bottom,
float  top,
float  nearPlane,
float  farPlane 
)
inlinestatic

◆ Perspective() [1/3]

static Mat4 gl_helper::Mat4::Perspective ( float  width,
float  height,
float  nearPlane,
float  farPlane 
)
inlinestatic
Here is the call graph for this function:

◆ Perspective() [2/3]

static Mat4 gl_helper::Mat4::Perspective ( float  fovy,
int  width,
int  height,
float  zNear,
float  zFar 
)
inlinestatic

◆ Perspective() [3/3]

static Mat4 gl_helper::Mat4::Perspective ( float  fx,
float  fy,
float  cx,
float  cy,
int  w,
int  h,
float  n,
float  f 
)
inlinestatic

◆ PostRotate()

Mat4& gl_helper::Mat4::PostRotate ( float  angle,
float  rx,
float  ry,
float  rz 
)
inline
Here is the call graph for this function:

◆ PostScale()

Mat4& gl_helper::Mat4::PostScale ( float  sx,
float  sy,
float  sz 
)
inline

◆ PostTranslate()

Mat4& gl_helper::Mat4::PostTranslate ( float  tx,
float  ty,
float  tz 
)
inline
Here is the caller graph for this function:

◆ Ptr()

float* gl_helper::Mat4::Ptr ( )
inline
Here is the caller graph for this function:

◆ RotationX()

static Mat4 gl_helper::Mat4::RotationX ( const float  fAngle)
inlinestatic

◆ RotationY()

static Mat4 gl_helper::Mat4::RotationY ( const float  fAngle)
inlinestatic

◆ RotationZ()

static Mat4 gl_helper::Mat4::RotationZ ( const float  fAngle)
inlinestatic

◆ Scale()

static Mat4 gl_helper::Mat4::Scale ( const float  fX,
const float  fY,
const float  fZ 
)
inlinestatic

◆ Translation() [1/2]

static Mat4 gl_helper::Mat4::Translation ( const float  fX,
const float  fY,
const float  fZ 
)
inlinestatic

◆ Translation() [2/2]

static Mat4 gl_helper::Mat4::Translation ( const Vec3  vec)
inlinestatic

◆ Transpose()

Mat4 gl_helper::Mat4::Transpose ( )
inline

◆ Zero()

static Mat4 gl_helper::Mat4::Zero ( )
inlinestatic

Friends And Related Function Documentation

◆ Quaternion

friend class Quaternion
friend

◆ Vec3

friend class Vec3
friend

◆ Vec4

friend class Vec4
friend

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