extents static method

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

Implementation

static Vec2D extents(Vec2D out, AABB a) {
  out[0] = (a[2] - a[0]) * 0.5;
  out[1] = (a[3] - a[1]) * 0.5;
  return out;
}