summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-02-05 11:44:12 +0100
committerRay <[email protected]>2023-02-05 11:44:12 +0100
commit60d0ab418a3011fe5df663ac4be37ee53bcc5393 (patch)
tree4c1f2f86d416d0432a037ef6b8fb197b95b59e9d /src
parent8c50da167de3854c4be2f0690a3e801e7723f980 (diff)
downloadraylib-60d0ab418a3011fe5df663ac4be37ee53bcc5393.tar.gz
raylib-60d0ab418a3011fe5df663ac4be37ee53bcc5393.zip
some typos review
Diffstat (limited to 'src')
-rw-r--r--src/raymath.h4
-rw-r--r--src/rcore.c2
2 files changed, 3 insertions, 3 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,
diff --git a/src/rcore.c b/src/rcore.c
index f2f0cbbe..ee88727d 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -3032,7 +3032,7 @@ const char *GetDirectoryPath(const char *filePath)
if (filePath[1] != ':' && filePath[0] != '\\' && filePath[0] != '/')
{
// For security, we set starting path to current directory,
- // obtained path will be concated to this
+ // obtained path will be concatenated to this
dirPath[0] = '.';
dirPath[1] = '/';
}