intersect

fun intersect(box: Box2): Box2

Intersects this box with box (keeps the overlapping region), making this box empty if there is no overlap.

Return

A reference to this box.