Create a new AABB with a center and halfExtents.
center
halfExtents
factory Aabb2.centerAndHalfExtents(Vector2 center, Vector2 halfExtents) => Aabb2()..setCenterAndHalfExtents(center, halfExtents);