Review formatting
This commit is contained in:
parent
4e6253b546
commit
742206c1f2
@ -1271,7 +1271,8 @@ RMDEF Quaternion QuaternionSlerp(Quaternion q1, Quaternion q2, float amount)
|
||||
|
||||
float cosHalfTheta = q1.x*q2.x + q1.y*q2.y + q1.z*q2.z + q1.w*q2.w;
|
||||
|
||||
if (cosHalfTheta < 0) {
|
||||
if (cosHalfTheta < 0)
|
||||
{
|
||||
q2.x = -q2.x; q2.y = -q2.y; q2.z = -q2.z; q2.w = -q2.w;
|
||||
cosHalfTheta = -cosHalfTheta;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user