summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-12-23 13:02:40 +0100
committerraysan5 <[email protected]>2020-12-23 13:02:40 +0100
commit9216e963152c5807bc0579c38b7416320e05f1a6 (patch)
treecd23aeb11eeb638725fb34bc00afa790dc6cf79a /src
parent0da827d7547ce76a3911ecb742cac1af9fcafd2e (diff)
downloadraylib-9216e963152c5807bc0579c38b7416320e05f1a6.tar.gz
raylib-9216e963152c5807bc0579c38b7416320e05f1a6.zip
Corrected typo
Diffstat (limited to 'src')
-rw-r--r--src/shapes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shapes.c b/src/shapes.c
index 24c91225..f92d8c54 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -1476,7 +1476,7 @@ bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2,
{
const float div = (endPos2.y - startPos2.y)*(endPos1.x - startPos1.x) - (endPos2.x - startPos2.x)*(endPos1.y - startPos1.y);
- if (div == 0.0f) return false; // WARNING: This check could not work due to float precission rounding issues...
+ if (div == 0.0f) return false; // WARNING: This check could not work due to float precision rounding issues...
const float xi = ((startPos2.x - startPos2.x)*(startPos1.x*endPos1.y - startPos1.y*endPos1.x) - (startPos1.x - endPos1.x)*(startPos2.x*endPos2.y - startPos2.y*endPos2.x))/div;
const float yi = ((startPos2.y - endPos2.y)*(startPos1.x*endPos1.y - startPos1.y*endPos1.x) - (startPos1.y - endPos1.y)*(startPos2.x*endPos2.y - startPos2.y*endPos2.x))/div;