Ignore:
Timestamp:
Aug 24, 2012, 12:51:48 PM (11 years ago)
Author:
sam
Message:

math: improve slerp implementation.

File:
1 edited

Legend:

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

    r1799 r1807  
    935935    static Quat<T> rotate(T angle, T x, T y, T z);
    936936    static Quat<T> rotate(T angle, Vec3<T> const &v);
    937         static Quat<T> slerp(Quat<T> QuatA,Quat<T> QuatB, float const &Scalar);
    938937
    939938    /* Convert from Euler angles. The axes in fromeuler_xyx are
     
    10201019
    10211020template<typename T>
    1022 static inline Quat<T> operator /(Quat<T> x, Quat<T> const &y)
     1021static inline Quat<T> operator /(Quat<T> const &x, Quat<T> const &y)
    10231022{
    10241023    return x * re(y);
    10251024}
     1025
     1026template<typename T>
     1027extern Quat<T> slerp(Quat<T> const &qa, Quat<T> const &qb, T f);
    10261028
    10271029/*
Note: See TracChangeset for help on using the changeset viewer.