Browse Source

Renamed GetRectangleOverlap() to GetOverlappingRectangle()

pull/4771/head
fmixolydian 5 days ago
parent
commit
606b8b7c74
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/raylib.h
  2. +1
    -1
      src/rshapes.c

+ 1
- 1
src/raylib.h 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 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)

+ 1
- 1
src/rshapes.c View File

@ -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;

Loading…
Cancel
Save