aboutsummaryrefslogtreecommitdiff
path: root/src/raymath.h
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2017-08-24 11:52:44 +0200
committerGitHub <noreply@github.com>2017-08-24 11:52:44 +0200
commitf78747130cdd7161a6fb883580dbcd85bfcc413d (patch)
tree5e839193686c3712517b16b47d4b00ffe16cb9da /src/raymath.h
parent88839b093c47a478979eaf9a26a7341ff37d8b63 (diff)
parent18bf0ac044e2642ed82f226ba58b0331d0a86ba6 (diff)
downloadraylib-f78747130cdd7161a6fb883580dbcd85bfcc413d.tar.gz
raylib-f78747130cdd7161a6fb883580dbcd85bfcc413d.zip
Merge pull request #345 from JellyPixelGames/fix-typos
Fix typo in raymath.h
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/raymath.h b/src/raymath.h
index a06a4f9e..fe0b8947 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -1218,19 +1218,19 @@ RMDEF Matrix QuaternionToMatrix(Quaternion q)
float z2 = z + z;
float length = QuaternionLength(q);
- float lenghtSquared = length*length;
+ float lengthSquared = length*length;
- float xx = x*x2/lenghtSquared;
- float xy = x*y2/lenghtSquared;
- float xz = x*z2/lenghtSquared;
+ float xx = x*x2/lengthSquared;
+ float xy = x*y2/lengthSquared;
+ float xz = x*z2/lengthSquared;
- float yy = y*y2/lenghtSquared;
- float yz = y*z2/lenghtSquared;
- float zz = z*z2/lenghtSquared;
+ float yy = y*y2/lengthSquared;
+ float yz = y*z2/lengthSquared;
+ float zz = z*z2/lengthSquared;
- float wx = w*x2/lenghtSquared;
- float wy = w*y2/lenghtSquared;
- float wz = w*z2/lenghtSquared;
+ float wx = w*x2/lengthSquared;
+ float wy = w*y2/lengthSquared;
+ float wz = w*z2/lengthSquared;
result.m0 = 1.0f - (yy + zz);
result.m1 = xy - wz;