Changeset 3971 in orxonox.OLD for orxonox/trunk/src/lib/math/vector.h
- Timestamp:
- Apr 26, 2005, 1:23:57 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/math/vector.h
r3966 r3971 76 76 77 77 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; } 79 79 Quaternion (float m[4][4]); 80 80 inline Quaternion (float angle, const Vector& axis) { w = cos(angle/2); v = axis * sin(angle/2); } … … 99 99 float norm () const; 100 100 void matrix (float m[4][4]) const; 101 Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t);102 101 103 102 void debug(); 104 private: 105 float DELTA; //!< resolution of calculation 103 }; 106 104 107 }; 105 Quaternion quatSlerp(const Quaternion& from, const Quaternion& to, float t); 106 107 108 108 109 109 //! 3D rotation (OBSOLETE)
Note: See TracChangeset
for help on using the changeset viewer.