center static method

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

Implementation

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