summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorJeffery Myers <[email protected]>2021-10-10 08:06:15 -0700
committerGitHub <[email protected]>2021-10-10 17:06:15 +0200
commit3d6d5558c96b818d7016cb92001b2e14e6a8001b (patch)
tree4c0180e5c795ca23b8c1fed0447a9a25e5de425a /src/raylib.h
parenta39a44c12fbbf870560f18a2ea90bb54989a931c (diff)
downloadraylib-3d6d5558c96b818d7016cb92001b2e14e6a8001b.tar.gz
raylib-3d6d5558c96b818d7016cb92001b2e14e6a8001b.zip
Add CheckCollisionPointLine to the header, it appears to have been missed (#2042)
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 31af5d57..7bcb39e3 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1189,6 +1189,7 @@ RLAPI bool CheckCollisionPointRec(Vector2 point, Rectangle rec);
RLAPI bool CheckCollisionPointCircle(Vector2 point, Vector2 center, float radius); // Check if point is inside circle
RLAPI bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Vector2 p3); // Check if point is inside a triangle
RLAPI bool CheckCollisionLines(Vector2 startPos1, Vector2 endPos1, Vector2 startPos2, Vector2 endPos2, Vector2 *collisionPoint); // Check the collision between two lines defined by two points each, returns collision point by reference
+RLAPI bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int threshold); // Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels [threshold]
RLAPI Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); // Get collision rectangle for two rectangles collision
//------------------------------------------------------------------------------------