Renamed GetRectangleOverlap() to GetOverlappingRectangle()
This commit is contained in:
parent
b94cf4daca
commit
606b8b7c74
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue
Block a user