intersect

Rectangle.intersect

intersect(Rectangle $a, Rectangle $b)

Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection.

ParameterTypeDescription
$aRectangle
$bRectangle