Compare commits
1 Commits
74775bb59d
...
8dfc84c0b5
Author | SHA1 | Date | |
---|---|---|---|
8dfc84c0b5 |
@@ -48,7 +48,7 @@ void QuaternionOperations::slerp(const double q1[4], const double q2[4], const d
|
||||
|
||||
VectorOperations<double>::mulScalar(q1, std::sin((1 - weight) * angle) / std::sin(angle), left,
|
||||
4);
|
||||
VectorOperations<double>::mulScalar(q1, std::sin(weight * angle) / std::sin(angle), right, 4);
|
||||
VectorOperations<double>::mulScalar(q2, std::sin(weight * angle) / std::sin(angle), right, 4);
|
||||
VectorOperations<double>::add(left, right, q, 4);
|
||||
|
||||
normalize(q);
|
||||
|
Reference in New Issue
Block a user