Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/matrix4f.cc')
-rw-r--r--src/math/matrix4f.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/matrix4f.cc b/src/math/matrix4f.cc
index 371d666..b7953e9 100644
--- a/src/math/matrix4f.cc
+++ b/src/math/matrix4f.cc
@@ -36,7 +36,7 @@ void Matrix4f::clear()
void Matrix4f::unity()
{
memset(matrix, 0, sizeof(matrix));
- for (int i=0; i <4; i++)
+ for (int i = 0; i < 4; i++)
matrix[i][i] = 1;
}
@@ -48,7 +48,7 @@ void Matrix4f::assign(const Matrix4f & other)
void Matrix4f::assign(const Axis & axis)
{
memset(matrix, 0, sizeof(matrix));
- for (int i=0; i < 3; i++) {
+ for (int i = 0; i < 3; i++) {
memcpy(&matrix[i][0], axis[i].ptr(), sizeof(float) * 3);
}
matrix[3][3] = 1;
@@ -69,7 +69,7 @@ Matrix4f & Matrix4f::operator=(const Axis & axis)
Matrix4f const Matrix4f::transpose()
{
Matrix4f t;
-
+
for (size_t i = 0; i < 4; i++)
for (size_t j = 0; j < 4; j++)
t.matrix[j][i] = matrix[i][j];