From 84d474fd3bd78f5ba6dcee65323f267fa8061b03 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 27 Apr 2008 16:50:30 +0000 Subject: more 3D changes --- src/math/axis.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/math/axis.cc') 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) { -- cgit v1.2.3