Renamed GetRectangleOverlap() to GetOverlappingRectangle()

This commit is contained in:
fmixolydian 2025-02-16 11:06:59 +01:00
parent b94cf4daca
commit 606b8b7c74
2 changed files with 2 additions and 2 deletions

View File

@ -1318,7 +1318,7 @@ RLAPI bool CheckCollisionPointLine(Vector2 point, Vector2 p1, Vector2 p2, int th
RLAPI bool CheckCollisionPointPoly(Vector2 point, const Vector2 *points, int pointCount); // Check if point is within a polygon described by array of vertices RLAPI bool CheckCollisionPointPoly(Vector2 point, const 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 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 RLAPI Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2); // Get collision rectangle for two rectangles collision
RLAPI Rectangle GetRectangleOverlap(Rectangle a, Rectangle b); // Get smallest rectangle entirely overlapping both rectangles RLAPI Rectangle GetOverlappingRectangle(Rectangle a, Rectangle b);
//------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------
// Texture Loading and Drawing Functions (Module: textures) // Texture Loading and Drawing Functions (Module: textures)

View File

@ -2406,7 +2406,7 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2)
} }
// Get smallest rectangle entirely overlapping both rectangles // Get smallest rectangle entirely overlapping both rectangles
Rectangle GetRectangleOverlap(Rectangle a, Rectangle b) { Rectangle GetOverlappingRectangle(Rectangle a, Rectangle b) {
Rectangle overlap; Rectangle overlap;
Rectangle left, right, top, bottom; Rectangle left, right, top, bottom;