getExtents method

Vector2 getExtents()

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

Implementation

Vector2 getExtents() {
  final Vector2 center = Vector2.copy(upperBound);
  center.sub(lowerBound);
  center.scale(.5);
  return center;
}