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>2008-04-27 16:50:30 +0000
committerStijn Buys <ingar@osirion.org>2008-04-27 16:50:30 +0000
commit84d474fd3bd78f5ba6dcee65323f267fa8061b03 (patch)
tree45a2061ffe0a0eaf2675f5143859f2c06a233241 /src/math/axis.cc
parenta4b36e6d1e20b5036d1ed7cf9f61a48dbbf77812 (diff)
more 3D changes
Diffstat (limited to 'src/math/axis.cc')
-rw-r--r--src/math/axis.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/math/axis.cc b/src/math/axis.cc
index cbca99b..6f9710b 100644
--- a/src/math/axis.cc
+++ b/src/math/axis.cc
@@ -74,6 +74,18 @@ void Axis::change_roll(const float angle) {
axis_vector[1].assign(up);
}
+/*
+Axis const Axis::transpose()
+{
+ 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];
+ return t;
+}
+*/
+
// write an axis to a std::ostream
std::ostream &operator<<(std::ostream & os, Axis const & axis)
{