Clementine
|
4x4 矩阵, 单精度浮点数. More...
#include <Matrix4.h>
Public Member Functions | |
Matrix4 (std::initializer_list< float > list) | |
Matrix4 (const float *m) | |
Vector3 | getTranslation () const |
Vector3 | getRotation () const |
Vector3 | getScale () const |
void | translate (const Vector3 &vec) |
void | rotateX (float angle) |
void | rotateY (float angle) |
void | rotateZ (float angle) |
void | scale (const Vector3 &vec) |
Matrix4 | operator- () const |
Matrix4 & | operator= (const Matrix4 &rhs) |
Matrix4 | operator+ (const Matrix4 &rhs) const |
Matrix4 & | operator+= (const Matrix4 &rhs) |
Matrix4 | operator- (const Matrix4 &rhs) const |
Matrix4 & | operator-= (const Matrix4 &rhs) |
Matrix4 | operator* (const Matrix4 &rhs) const |
Matrix4 & | operator*= (const Matrix4 &rhs) |
Matrix4 | operator* (float rhs) const |
Matrix4 & | operator*= (float rhs) |
Public Attributes | |
float | m [4][4] |
Static Public Attributes | |
static const Matrix4 | identity |
static const Matrix4 | zero |
4x4 矩阵, 单精度浮点数.
|
static |
|
static |