diff options
Diffstat (limited to 'src/math/matrix4f.h')
-rw-r--r-- | src/math/matrix4f.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/math/matrix4f.h b/src/math/matrix4f.h index 5442cb9..0ac0f68 100644 --- a/src/math/matrix4f.h +++ b/src/math/matrix4f.h @@ -16,8 +16,12 @@ namespace math class Matrix4f { public: + /// default constructor Matrix4f(); + + /// copy constructor Matrix4f(const Matrix4f & other); + Matrix4f(const Axis & axis); /// set all values to zero @@ -39,15 +43,16 @@ public: Matrix4f & operator=(const Axis & axis); /// return a pointer to the internal data - inline float * ptr() const { - return (float *) matrix; + inline float * ptr() const + { + return (float *) _matrix; } /// return the transpose matrix - Matrix4f const transpose(); + const Matrix4f transpose() const; private: - float matrix[4][4]; + float _matrix[4][4]; }; } |