extents property

Vector2 extents

Get the extents of the AABB (half-widths).

Implementation

Vector2 get extents {
  return Vector2.copy(upperBound)
    ..sub(lowerBound)
    ..scale(.5);
}