Changeset 1804


Ignore:
Timestamp:
Aug 24, 2012, 12:08:09 AM (7 years ago)
Author:
Jnat
Message:

Added test in slerp to avoid -1 quat members

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/math/vector.cpp

    r1799 r1804  
    493493
    494494        float product = lol::dot(QuatA,QuatB) / magnitude;
    495         if (product != 1.0f)
     495        if (product > -1.0f && product < 1.0f)
    496496        {
    497497                // Take care of long angle case see http://en.wikipedia.org/wiki/Slerp
Note: See TracChangeset for help on using the changeset viewer.