corners2D property

Iterable<Position> corners2D

Returns all distinct (in 2D) corners for this axis aligned bounding box.

May return 1 (when min == max), 2 (when either or both 2D coordinates equals between min and max) or 4 positions (otherwise).

Implementation

Iterable<Position> get corners2D;