diff options
| author | Ray <raysan5@gmail.com> | 2017-08-24 11:52:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-08-24 11:52:44 +0200 |
| commit | f78747130cdd7161a6fb883580dbcd85bfcc413d (patch) | |
| tree | 5e839193686c3712517b16b47d4b00ffe16cb9da /src | |
| parent | 88839b093c47a478979eaf9a26a7341ff37d8b63 (diff) | |
| parent | 18bf0ac044e2642ed82f226ba58b0331d0a86ba6 (diff) | |
| download | raylib-f78747130cdd7161a6fb883580dbcd85bfcc413d.tar.gz raylib-f78747130cdd7161a6fb883580dbcd85bfcc413d.zip | |
Merge pull request #345 from JellyPixelGames/fix-typos
Fix typo in raymath.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/raymath.h | 20 |
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; |
