Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 26, 2005, 1:23:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: return value of quat-slerp was wrong

File:
1 edited

Legend:

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

    r3966 r3971  
    7676 
    7777  inline Quaternion () { w = 1; v = Vector(0,0,0); }
    78   inline Quaternion (const Vector& b, float a) { w = a; v = b; }
     78  inline Quaternion (const Vector& v, float f) { this->w = f; this->v = v; }
    7979  Quaternion (float m[4][4]);
    8080  inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2); v = axis * sin(angle/2); }
     
    9999  float norm () const;
    100100  void matrix (float m[4][4]) const;
    101   Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t);
    102101 
    103102  void debug();
    104  private:
    105   float DELTA;      //!< resolution of calculation
     103};
    106104
    107 };
     105Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t);
     106
     107
    108108
    109109//! 3D rotation (OBSOLETE)
Note: See TracChangeset for help on using the changeset viewer.