diff options
| author | Ray <[email protected]> | 2023-02-05 11:44:12 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-02-05 11:44:12 +0100 |
| commit | 60d0ab418a3011fe5df663ac4be37ee53bcc5393 (patch) | |
| tree | 4c1f2f86d416d0432a037ef6b8fb197b95b59e9d /src/raymath.h | |
| parent | 8c50da167de3854c4be2f0690a3e801e7723f980 (diff) | |
| download | raylib-60d0ab418a3011fe5df663ac4be37ee53bcc5393.tar.gz raylib-60d0ab418a3011fe5df663ac4be37ee53bcc5393.zip | |
some typos review
Diffstat (limited to 'src/raymath.h')
| -rw-r--r-- | src/raymath.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raymath.h b/src/raymath.h index 96c24184..86134d09 100644 --- a/src/raymath.h +++ b/src/raymath.h @@ -912,7 +912,7 @@ RMAPI Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) { Vector3 result = { 0 }; - // Calculate unproject matrix (multiply view matrix by projection matrix) and invert it + // Calculate unprojected matrix (multiply view matrix by projection matrix) and invert it Matrix matViewProj = { // MatrixMultiply(view, projection); view.m0*projection.m0 + view.m1*projection.m4 + view.m2*projection.m8 + view.m3*projection.m12, view.m0*projection.m1 + view.m1*projection.m5 + view.m2*projection.m9 + view.m3*projection.m13, @@ -975,7 +975,7 @@ RMAPI Vector3 Vector3Unproject(Vector3 source, Matrix projection, Matrix view) // Create quaternion from source point Quaternion quat = { source.x, source.y, source.z, 1.0f }; - // Multiply quat point by unproject matrix + // Multiply quat point by unprojecte matrix Quaternion qtransformed = { // QuaternionTransform(quat, matViewProjInv) matViewProjInv.m0*quat.x + matViewProjInv.m4*quat.y + matViewProjInv.m8*quat.z + matViewProjInv.m12*quat.w, matViewProjInv.m1*quat.x + matViewProjInv.m5*quat.y + matViewProjInv.m9*quat.z + matViewProjInv.m13*quat.w, |
