Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5001 in orxonox.OLD for orxonox/trunk/src/lib/math/vector.h


Ignore:
Timestamp:
Aug 13, 2005, 10:08:47 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: update-setRelDir works correctly now :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/math/vector.h

    r5000 r5001  
    171171  inline Vector getSpacialAxis() const { return this->v / sin(acos(w));/*sqrt(v.x*v.x + v.y*v.y + v.z+v.z);*/ };
    172172  /** @returns the rotational angle of this Quaternion around getSpacialAxis()  !! IN DEGREE !! */
    173   inline float getSpacialAxisAngle() const { return 360 / M_PI * acos(this->w); };
     173  inline float getSpacialAxisAngle() const { return 360.0 / M_PI * acos(this->w); };
    174174
    175175  static Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t);
Note: See TracChangeset for help on using the changeset viewer.