Skip to content

rectangle_in_rectangle

Vašek edited this page Feb 10, 2019 · 4 revisions

rectangle_in_rectangle

Checks if two given rectangles intersect.

Syntax:

rectangle_in_rectangle(r1, r2)
Argument Description
Rectangle r1 The first rectangle
Rectangle r2 The other rectangle

Returns: bool

Description:

This function checks if the two given rectangles intersect in at least one position.

Example:

rectangle_in_rectangle(new Rectangle(0, 0, 10, 10), new Rectangle(5, 5, 10, 10));

This function returns true.

Back to Raycasting

Clone this wiki locally