From 25bcd92706ce2cd6aee24cfb81e9ff2fd7dd4820 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 11 Aug 2009 11:49:12 +0000 Subject: misc_model support --- src/math/axis.cc | 4 ++-- src/math/axis.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/math') diff --git a/src/math/axis.cc b/src/math/axis.cc index f7a1eec..31ba26a 100644 --- a/src/math/axis.cc +++ b/src/math/axis.cc @@ -97,7 +97,7 @@ void Axis::rotate(Vector3f const &normal, float angle) } } -Axis Axis::transpose() const +const Axis Axis::transpose() const { Axis t; @@ -107,7 +107,7 @@ Axis Axis::transpose() const return t; } -Axis Axis::operator*(const Axis &other) +const Axis Axis::operator*(const Axis &other) const { Axis t; for (size_t i = 0; i < 3; i++) diff --git a/src/math/axis.h b/src/math/axis.h index 3268d60..5f532c8 100644 --- a/src/math/axis.h +++ b/src/math/axis.h @@ -50,7 +50,7 @@ public: Axis & operator=(const Axis & other); - Axis operator*(const Axis &other); + const Axis operator*(const Axis &other) const; /// change direction, rotate around up vector (positive is left) void change_direction(const float angle); @@ -65,7 +65,7 @@ public: void rotate(const Vector3f & normal, const float angle); /// return the transpose of this matrix - Axis transpose() const; + const Axis transpose() const; private: Vector3f axis_vector[3]; -- cgit v1.2.3