summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorRay <[email protected]>2021-03-19 19:43:44 +0100
committerRay <[email protected]>2021-03-19 19:43:44 +0100
commit990906871435fa056d9002810c9f4a46076207bb (patch)
tree818754766a127aed414cdf060093d443107d44d1 /src/raymath.h
parente28f754fbe9a7414be89e76359453ef663dc088f (diff)
downloadraylib-990906871435fa056d9002810c9f4a46076207bb.tar.gz
raylib-990906871435fa056d9002810c9f4a46076207bb.zip
Removed trailing spaces
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 38d9c4a3..b9ced952 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -984,7 +984,7 @@ RMDEF Matrix MatrixRotateZYX(Vector3 ang)
result.m0 = cz*cy;
result.m1 = cz*sy*sx - cx*sz;
result.m2 = sz*sx + cz*cx*sy;
- result.m3 = 0;
+ result.m3 = 0;
result.m4 = cy*sz;
result.m5 = cz*cx + sz*sy*sx;
@@ -995,7 +995,7 @@ RMDEF Matrix MatrixRotateZYX(Vector3 ang)
result.m9 = cy*sx;
result.m10 = cy*cx;
result.m11 = 0;
-
+
result.m12 = 0;
result.m13 = 0;
result.m14 = 0;
@@ -1294,11 +1294,11 @@ 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;
- }
+ }
if (fabs(cosHalfTheta) >= 1.0f) result = q1;
else if (cosHalfTheta > 0.95f) result = QuaternionNlerp(q1, q2, amount);
@@ -1478,7 +1478,7 @@ RMDEF Quaternion QuaternionFromEuler(float pitch, float yaw, float roll)
q.y = x0*y1*z0 + x1*y0*z1;
q.z = x0*y0*z1 - x1*y1*z0;
q.w = x0*y0*z0 + x1*y1*z1;
-
+
return q;
}