Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-02-22 15:20:16 +0000
committerStijn Buys <ingar@osirion.org>2015-02-22 15:20:16 +0000
commitf14bfe36478e7d581eba54a678b3da5863706b37 (patch)
tree504658f00b60aeb0602be835d411cbde76e52a12 /src/math/matrix4f.h
parent1e6411e7a9798d043f2c8f7bb7582ece5d5f1e9a (diff)
Small optimizations.
Diffstat (limited to 'src/math/matrix4f.h')
-rw-r--r--src/math/matrix4f.h13
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];
};
}