corners2D property
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
@override
Iterable<T> get corners2D => Box.createCorners2D(
this,
({required num x, required num y, num? z, num? m}) =>
min.newWith(x: x, y: y, z: z, m: m) as T,
);