Changeset 7348 in orxonox.OLD for trunk/src/lib/math/quaternion.h
- Timestamp:
- Apr 19, 2006, 2:55:29 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/math/quaternion.h
r7191 r7348 96 96 inline void normalize() { float n = this->norm(); this->v /= n; this->w/=n; }; 97 97 98 float getHeading() const; 99 float getAttitude() const; 100 float getBank() const; 98 101 /** @returns the rotational axis of this Quaternion */ 99 102 inline Vector getSpacialAxis() const { return this->v / sin(acos(w));/*sqrt(v.x*v.x + v.y*v.y + v.z+v.z);*/ };
Note: See TracChangeset
for help on using the changeset viewer.