diff options
| author | raysan5 <[email protected]> | 2020-12-23 12:45:53 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-12-23 12:45:53 +0100 |
| commit | b78ee13791d9b31b06ad63799e547e7f0a2f73ff (patch) | |
| tree | c3121691fd6033c2948d42bf96ab4e74faf2fe09 /src/raylib.h | |
| parent | 2bdb45f2804461c4e8b35faee998008b96becabe (diff) | |
| download | raylib-b78ee13791d9b31b06ad63799e547e7f0a2f73ff.tar.gz raylib-b78ee13791d9b31b06ad63799e547e7f0a2f73ff.zip | |
ADDED: CheckCollisionLines()
Removed function from raymath
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 928a197a..bfa7c20d 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1123,10 +1123,11 @@ RLAPI void DrawPolyLines(Vector2 center, int sides, float radius, float rotation RLAPI bool CheckCollisionRecs(Rectangle rec1, Rectangle rec2); // Check collision between two rectangles RLAPI bool CheckCollisionCircles(Vector2 center1, float radius1, Vector2 center2, float radius2); // Check collision between two circles RLAPI bool CheckCollisionCircleRec(Vector2 center, float radius, Rectangle rec); // Check collision between circle and rectangle -RLAPI Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); // Get collision rectangle for two rectangles collision 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 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 Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); // Get collision rectangle for two rectangles collision //------------------------------------------------------------------------------------ // Texture Loading and Drawing Functions (Module: textures) |
