Sfoglia il codice sorgente

core: code-style: cleanup expressions

Daniele Bartolini 3 anni fa
parent
commit
c5c0641181
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      src/core/math/quaternion.inl

+ 4 - 4
src/core/math/quaternion.inl

@@ -193,10 +193,10 @@ inline Quaternion lerp(const Quaternion& a, const Quaternion& b, f32 t)
 
 	if (dot(a, b) < 0.0f)
 	{
-		r.x = t1*a.x + t*-b.x;
-		r.y = t1*a.y + t*-b.y;
-		r.z = t1*a.z + t*-b.z;
-		r.w = t1*a.w + t*-b.w;
+		r.x = t1*a.x - t*b.x;
+		r.y = t1*a.y - t*b.y;
+		r.z = t1*a.z - t*b.z;
+		r.w = t1*a.w - t*b.w;
 	}
 	else
 	{