Skip to content

gengine.math.doRectanglesIntersect

Gauthier Billot edited this page Mar 24, 2015 · 1 revision

Function

Returns true if the given rectangles intersect.

Synopsis
local result = gengine.math.doRectanglesIntersect(position1, extent1, position2, extent2)
Arguments
Name Type Description
position1 vector2 The first position
extent1 vector2 The first extent
position2 vector2 The second position
extent2 vector2 The second extent
Returns

Returns true or false.

Clone this wiki locally