5 #ifndef _SPICA_TRANSFORM_H_
6 #define _SPICA_TRANSFORM_H_
8 #include "../core/common.h"
9 #include "../core/bounds3d.h"
10 #include "matrix4x4.h"
21 explicit Transform(
const double mat[4][4]);
37 bool isIdentity()
const;
42 inline const Matrix4x4& getMat()
const {
return m_; }
43 inline const Matrix4x4& getInvMat()
const {
return mInv_; }
47 static Transform scale(
double x,
double y,
double z);
51 static Transform orthographic(
double zNear,
double zFar);
52 static Transform perspective(
double fov,
double aspect,
53 double near,
double far);
65 #endif // _SPICA_TRANSFORM_H_
Matrix of 4 x 4 size.
Definition: matrix4x4.h:20