diff options
| author | Ray <[email protected]> | 2022-09-04 10:45:01 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-09-04 10:45:01 +0200 |
| commit | f4b4054de570742845fb9a7b80c579ba37d98fbd (patch) | |
| tree | 35ec7c5d6e1cb39d669ab96d73b4e7a61ea95b54 /src/raylib.h | |
| parent | aff98d7f2af466f4b066ac9a019b8ca1e450c5cd (diff) | |
| download | raylib-f4b4054de570742845fb9a7b80c579ba37d98fbd.tar.gz raylib-f4b4054de570742845fb9a7b80c579ba37d98fbd.zip | |
REVIEWED: `CheckCollisionPointPoly()`
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 1f0ee8f3..3f03effe 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1213,7 +1213,7 @@ RLAPI bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); RLAPI bool CheckCollisionPointRec(Vector2 point, Rectangle rec); // Check if point is inside rectangle 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 CheckCollisionPointPolygon(Vector2 point, Vector2* vertices, int verticesCount); // Check if point is within a polygon described by array of vertices +RLAPI bool CheckCollisionPointPoly(Vector2 point, Vector2 *points, int pointCount); // Check if point is within a polygon described by array of vertices 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 |
