Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Mar 1, 2006, 10:30:06 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some better and faster slerp functions

File:
1 edited

Legend:

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

    r6617 r7191  
    9797  Vector getNormalized() const;
    9898  Vector abs();
     99  /** @param toVec nears this Vector to... @param t how much to advance (0.0: not at all; 1.0: fully) */
     100  inline void slerpTo(const Vector& toVec, float t) { *this + (toVec - *this) * t; };
    99101
    100102  void debug() const;
Note: See TracChangeset for help on using the changeset viewer.