extents static method

Vec2D extents(
  1. Vec2D out,
  2. AABB a
)

Implementation

static Vec2D extents(Vec2D out, AABB a) {
  out.x = a.width * 0.5;
  out.y = a.height * 0.5;
  return out;
}