From 3d97c7737fdda88c5d5d9e3e7d13f4c1973c7774 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Oct 2010 16:59:52 +0000 Subject: corrected modelview rotation to radians --- src/math/axis.h | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'src/math/axis.h') diff --git a/src/math/axis.h b/src/math/axis.h index 0ece016..c22568c 100644 --- a/src/math/axis.h +++ b/src/math/axis.h @@ -52,17 +52,32 @@ public: const Axis operator*(const Axis &other) const; - /// change direction, rotate around up vector (positive is left) + /** + * @brief change axis direction angle + * rotate around axis up vector (positive is left) + * @param angle angle in degrees + **/ void change_direction(const float angle); - /// change pitch, rotate around left vector (positive is up) + /** + * @brief change axis pitch angle + * rotate around left vector (positive is up) + * @param angle angle in degrees + **/ void change_pitch(const float angle); - /// change roll, rotate around forward vector (positive is left) + /** + * @brief change axis roll angle + * rotate around forward vector (positive is left) + * @param angle angle in degrees + **/ void change_roll(const float angle); - /// rotation about an arbitrary axis - void rotate(const Vector3f & normal, const float angle); + /** + * @brief rotation about an arbitrary vector + * @param rad angle in radians + **/ + void rotate(const Vector3f & normal, const float rad); /// return the transpose of this matrix const Axis transpose() const; -- cgit v1.2.3