Changeset 2279


Ignore:
Timestamp:
Jan 25, 2013, 5:14:56 PM (7 years ago)
Author:
touky
Message:

Small fix in template lerp

Location:
trunk/src
Files:
2 edited

Legend:

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

    r2216 r2279  
    12871287        tname<tf> ret; \
    12881288        for (size_t n = 0; n < sizeof(a) / sizeof(t1); n++) \
    1289             ret[n] = a[n] + (a[n] - b[n]) * x; \
     1289            ret[n] = a[n] + (b[n] - a[n]) * x; \
    12901290        return ret; \
    12911291    }
  • trunk/src/numeric.h

    r2183 r2279  
    5353}
    5454
    55 //Lerp for float
     55//Damp for float
    5656template <typename T1, typename T2, typename Tf> static inline T1 damp(const T1 &a, const T2 &b, const Tf &x, const Tf &dt)
    5757{
Note: See TracChangeset for help on using the changeset viewer.