Changeset 5435 in orxonox.OLD for trunk/src/lib/math
- Timestamp:
- Oct 25, 2005, 5:31:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/math/vector.h
r5420 r5435 187 187 inline Vector getSpacialAxis() const { return this->v / sin(acos(w));/*sqrt(v.x*v.x + v.y*v.y + v.z+v.z);*/ }; 188 188 /** @returns the rotational angle of this Quaternion around getSpacialAxis() !! IN DEGREE !! */ 189 inline float getSpacialAxisAngle() const { return 360.0 / M_PI * acos( this->w); };189 inline float getSpacialAxisAngle() const { return 360.0 / M_PI * acos( this->w ); }; 190 190 191 191 static Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t);
Note: See TracChangeset
for help on using the changeset viewer.