Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Public Attributes | List of all members
Matrix4< T > Class Template Reference

#include <Matrix4.h>

Public Member Functions

void Concatenate (const Matrix4 &m2)
 
Vector3< T > GetXColumn (void) const
 
Vector3< T > GetYColumn (void) const
 
Vector3< T > GetZColumn (void) const
 
void Identity ()
 
void Init (const Vector3< T > &a_Pos, T a_RX, T a_RY, T a_RZ)
 
void Invert (void)
 
 Matrix4 (const Matrix4 &a_Rhs)
 
 Matrix4 (void)
 
Matrix4operator= (const Matrix4 &a_Rhs)
 
T & operator[] (int a_N)
 
void RotateX (T a_RX)
 
void RotateY (T a_RY)
 
void RotateZ (T a_RZ)
 
void SetTranslation (const Vector3< T > &a_Pos)
 
void SetXColumn (const Vector3< T > &a_X)
 
void SetYColumn (const Vector3< T > &a_Y)
 
void SetZColumn (const Vector3< T > &a_Z)
 
Vector3< T > Transform (const Vector3< T > &v) const
 
void Translate (const Vector3< T > &a_Pos)
 

Public Attributes

cell [16]
 

Detailed Description

template<typename T>
class Matrix4< T >

Definition at line 15 of file Matrix4.h.

Constructor & Destructor Documentation

◆ Matrix4() [1/2]

template<typename T >
Matrix4< T >::Matrix4 ( void  )
inline

Definition at line 28 of file Matrix4.h.

◆ Matrix4() [2/2]

template<typename T >
Matrix4< T >::Matrix4 ( const Matrix4< T > &  a_Rhs)
inline

Definition at line 33 of file Matrix4.h.

Member Function Documentation

◆ Concatenate()

template<typename T >
void Matrix4< T >::Concatenate ( const Matrix4< T > &  m2)
inline

Definition at line 124 of file Matrix4.h.

◆ GetXColumn()

template<typename T >
Vector3<T> Matrix4< T >::GetXColumn ( void  ) const
inline

Definition at line 179 of file Matrix4.h.

◆ GetYColumn()

template<typename T >
Vector3<T> Matrix4< T >::GetYColumn ( void  ) const
inline

Definition at line 184 of file Matrix4.h.

◆ GetZColumn()

template<typename T >
Vector3<T> Matrix4< T >::GetZColumn ( void  ) const
inline

Definition at line 189 of file Matrix4.h.

◆ Identity()

template<typename T >
void Matrix4< T >::Identity ( )
inline

Definition at line 57 of file Matrix4.h.

◆ Init()

template<typename T >
void Matrix4< T >::Init ( const Vector3< T > &  a_Pos,
a_RX,
a_RY,
a_RZ 
)
inline

Definition at line 66 of file Matrix4.h.

◆ Invert()

template<typename T >
void Matrix4< T >::Invert ( void  )
inline

Definition at line 153 of file Matrix4.h.

◆ operator=()

template<typename T >
Matrix4& Matrix4< T >::operator= ( const Matrix4< T > &  a_Rhs)
inline

Definition at line 40 of file Matrix4.h.

◆ operator[]()

template<typename T >
T& Matrix4< T >::operator[] ( int  a_N)
inline

Definition at line 51 of file Matrix4.h.

◆ RotateX()

template<typename T >
void Matrix4< T >::RotateX ( a_RX)
inline

Definition at line 77 of file Matrix4.h.

◆ RotateY()

template<typename T >
void Matrix4< T >::RotateY ( a_RY)
inline

Definition at line 88 of file Matrix4.h.

◆ RotateZ()

template<typename T >
void Matrix4< T >::RotateZ ( a_RZ)
inline

Definition at line 99 of file Matrix4.h.

◆ SetTranslation()

template<typename T >
void Matrix4< T >::SetTranslation ( const Vector3< T > &  a_Pos)
inline

Definition at line 117 of file Matrix4.h.

◆ SetXColumn()

template<typename T >
void Matrix4< T >::SetXColumn ( const Vector3< T > &  a_X)
inline

Definition at line 194 of file Matrix4.h.

◆ SetYColumn()

template<typename T >
void Matrix4< T >::SetYColumn ( const Vector3< T > &  a_Y)
inline

Definition at line 201 of file Matrix4.h.

◆ SetZColumn()

template<typename T >
void Matrix4< T >::SetZColumn ( const Vector3< T > &  a_Z)
inline

Definition at line 208 of file Matrix4.h.

◆ Transform()

template<typename T >
Vector3<T> Matrix4< T >::Transform ( const Vector3< T > &  v) const
inline

Definition at line 144 of file Matrix4.h.

◆ Translate()

template<typename T >
void Matrix4< T >::Translate ( const Vector3< T > &  a_Pos)
inline

Definition at line 110 of file Matrix4.h.

Member Data Documentation

◆ cell

template<typename T >
T Matrix4< T >::cell[16]

Definition at line 24 of file Matrix4.h.


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