Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6627 in orxonox.OLD for trunk/src/lib/math/quaternion.h


Ignore:
Timestamp:
Jan 20, 2006, 2:43:55 AM (18 years ago)
Author:
bensch
Message:

trunk: valgrind sweep

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/math/quaternion.h

    r6616 r6627  
    4343  Quaternion (float m[4][4]);
    4444  /** turns a rotation along an axis into a Quaternion @param angle: the amount of radians to rotate @param axis: the axis to rotate around */
    45   inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2); v = axis * sin(angle/2); }
     45  inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2.0); v = axis * sin(angle/2.0); }
    4646  Quaternion (const Vector& dir, const Vector& up);
    4747  Quaternion (float roll, float pitch, float yaw);
Note: See TracChangeset for help on using the changeset viewer.