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/axis.cc')
-rw-r--r--src/math/axis.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/math/axis.cc b/src/math/axis.cc
index aa35d92..e6442eb 100644
--- a/src/math/axis.cc
+++ b/src/math/axis.cc
@@ -91,17 +91,15 @@ void Axis::rotate(Vector3f const &normal, float angle)
}
}
-/*
-Axis const Axis::transpose()
+Axis Axis::transpose() const
{
- Axis` t;
+ Axis t;
for (size_t i = 0; i < 3; i++)
for (size_t j = 0; j < 3; j++)
- t.axis_vector[j][i] = axis_vector[j][i];
+ t.axis_vector[i][j] = axis_vector[j][i];
return t;
}
-*/
// write an axis to a std::ostream
std::ostream &operator<<(std::ostream & os, Axis const & axis)