setCenterAndHalfExtents method Null safety

void setCenterAndHalfExtents(
  1. Vector3 center,
  2. Vector3 halfExtents
)

Set the AABB by a center and halfExtents.

Implementation

void setCenterAndHalfExtents(Vector3 center, Vector3 halfExtents) {
  _min
    ..setFrom(center)
    ..sub(halfExtents);
  _max
    ..setFrom(center)
    ..add(halfExtents);
}