getCenter method

Vector2 getCenter()

Get the center of the AABB

Implementation

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