From 606b8b7c74f0417af84b05a705c3db1b5683fae8 Mon Sep 17 00:00:00 2001 From: fmixolydian Date: Sun, 16 Feb 2025 11:06:59 +0100 Subject: [PATCH] Renamed GetRectangleOverlap() to GetOverlappingRectangle() --- src/raylib.h | 2 +- src/rshapes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/raylib.h b/src/raylib.h index 398202373..b473087e1 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -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 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 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) diff --git a/src/rshapes.c b/src/rshapes.c index caf8d96be..11f487924 100644 --- a/src/rshapes.c +++ b/src/rshapes.c @@ -2406,7 +2406,7 @@ Rectangle GetCollisionRec(Rectangle rec1, Rectangle rec2) } // Get smallest rectangle entirely overlapping both rectangles -Rectangle GetRectangleOverlap(Rectangle a, Rectangle b) { +Rectangle GetOverlappingRectangle(Rectangle a, Rectangle b) { Rectangle overlap; Rectangle left, right, top, bottom;