浏览代码

Corrected typo

raysan5 4 年之前
父节点
当前提交
9216e96315
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/shapes.c

+ 1 - 1
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;