Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyMath::Matrix4 Class Reference

#include <Matrix4.h>

Public Member Functions

 Matrix4 (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)
 
kmyMath::Matrix4 toNativeMatrix4 ()
 
Vector3 translation ()
 
Vector3 scale ()
 
Matrix4 scaleIdentity ()
 
Matrix4 translateIdentity ()
 
Vector3 getEularZXY ()
 
Vector3 getScale ()
 
Vector3 front ()
 
Vector3 back ()
 
Vector3 left ()
 
Vector3 right ()
 
Vector3 up ()
 
Vector3 down ()
 

Static Public Member Functions

static Matrix4 perspectiveFOV (float fov, float asp, float znear, float zfar)
 
static Matrix4 ortho (float left, float right, float top, float bottom, float znear, float zfar)
 
static Matrix4 translate (float x, float y, float z)
 
static Matrix4 scale (float x, float y, float z)
 
static Matrix4 rotateX (float r)
 
static Matrix4 rotateY (float r)
 
static Matrix4 rotateZ (float r)
 
static Matrix4 identity ()
 
static Matrix4 inverse (Matrix4 m)
 
static Matrix4 operator* (Matrix4 m1, Matrix4 m2)
 
static Matrix4 lookat (Vector3 eye, Vector3 target, Vector3 upvec)
 
static Vector4 operator* (Matrix4 m, Vector3 v)
 
static Vector4 operator* (Matrix4 m, Vector4 v)
 
static Matrix4 fromNativeMatrix4 (const kmyMath::Matrix4 &m)
 

Public Attributes

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
 

Constructor & Destructor Documentation

◆ Matrix4()

SharpKmyMath::Matrix4::Matrix4 ( 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 
)

Member Function Documentation

◆ back()

Vector3 SharpKmyMath::Matrix4::back ( )

◆ down()

Vector3 SharpKmyMath::Matrix4::down ( )

◆ fromNativeMatrix4()

static Matrix4 SharpKmyMath::Matrix4::fromNativeMatrix4 ( const kmyMath::Matrix4 &  m)
static

◆ front()

Vector3 SharpKmyMath::Matrix4::front ( )

◆ getEularZXY()

Vector3 SharpKmyMath::Matrix4::getEularZXY ( )

◆ getScale()

Vector3 SharpKmyMath::Matrix4::getScale ( )

◆ identity()

static Matrix4 SharpKmyMath::Matrix4::identity ( )
static

◆ inverse()

static Matrix4 SharpKmyMath::Matrix4::inverse ( Matrix4  m)
static

◆ left()

Vector3 SharpKmyMath::Matrix4::left ( )

◆ lookat()

static Matrix4 SharpKmyMath::Matrix4::lookat ( Vector3  eye,
Vector3  target,
Vector3  upvec 
)
static

◆ operator*() [1/3]

static Vector4 SharpKmyMath::Matrix4::operator* ( Matrix4  m,
Vector3  v 
)
static

◆ operator*() [2/3]

static Vector4 SharpKmyMath::Matrix4::operator* ( Matrix4  m,
Vector4  v 
)
static

◆ operator*() [3/3]

static Matrix4 SharpKmyMath::Matrix4::operator* ( Matrix4  m1,
Matrix4  m2 
)
static

◆ ortho()

static Matrix4 SharpKmyMath::Matrix4::ortho ( float  left,
float  right,
float  top,
float  bottom,
float  znear,
float  zfar 
)
static

◆ perspectiveFOV()

static Matrix4 SharpKmyMath::Matrix4::perspectiveFOV ( float  fov,
float  asp,
float  znear,
float  zfar 
)
static

◆ right()

Vector3 SharpKmyMath::Matrix4::right ( )

◆ rotateX()

static Matrix4 SharpKmyMath::Matrix4::rotateX ( float  r)
static

◆ rotateY()

static Matrix4 SharpKmyMath::Matrix4::rotateY ( float  r)
static

◆ rotateZ()

static Matrix4 SharpKmyMath::Matrix4::rotateZ ( float  r)
static

◆ scale() [1/2]

Vector3 SharpKmyMath::Matrix4::scale ( )

◆ scale() [2/2]

static Matrix4 SharpKmyMath::Matrix4::scale ( float  x,
float  y,
float  z 
)
static

◆ scaleIdentity()

Matrix4 SharpKmyMath::Matrix4::scaleIdentity ( )

◆ toNativeMatrix4()

kmyMath::Matrix4 SharpKmyMath::Matrix4::toNativeMatrix4 ( )

◆ translate()

static Matrix4 SharpKmyMath::Matrix4::translate ( float  x,
float  y,
float  z 
)
static

◆ translateIdentity()

Matrix4 SharpKmyMath::Matrix4::translateIdentity ( )

◆ translation()

Vector3 SharpKmyMath::Matrix4::translation ( )

◆ up()

Vector3 SharpKmyMath::Matrix4::up ( )

Member Data Documentation

◆ m00

float SharpKmyMath::Matrix4::m00

◆ m01

float SharpKmyMath::Matrix4::m01

◆ m02

float SharpKmyMath::Matrix4::m02

◆ m03

float SharpKmyMath::Matrix4::m03

◆ m10

float SharpKmyMath::Matrix4::m10

◆ m11

float SharpKmyMath::Matrix4::m11

◆ m12

float SharpKmyMath::Matrix4::m12

◆ m13

float SharpKmyMath::Matrix4::m13

◆ m20

float SharpKmyMath::Matrix4::m20

◆ m21

float SharpKmyMath::Matrix4::m21

◆ m22

float SharpKmyMath::Matrix4::m22

◆ m23

float SharpKmyMath::Matrix4::m23

◆ m30

float SharpKmyMath::Matrix4::m30

◆ m31

float SharpKmyMath::Matrix4::m31

◆ m32

float SharpKmyMath::Matrix4::m32

◆ m33

float SharpKmyMath::Matrix4::m33