-
-
Notifications
You must be signed in to change notification settings - Fork 18
rectangle_in_rectangle
Vašek edited this page Feb 10, 2019
·
4 revisions
Checks if two given rectangles intersect.
rectangle_in_rectangle(r1, r2)
Argument | Description |
---|---|
Rectangle r1 |
The first rectangle |
Rectangle r2 |
The other rectangle |
Returns: bool
This function checks if the two given rectangles intersect in at least one position.
rectangle_in_rectangle(new Rectangle(0, 0, 10, 10), new Rectangle(5, 5, 10, 10));
This function returns true.
Back to Raycasting