containsSphere method

bool containsSphere (Sphere other)

Return if this contains other.

Implementation

bool containsSphere(Sphere other) {
  final Vector3 boxExtends = new Vector3.all(other._radius);
  final Aabb3 sphereBox =
      new Aabb3.centerAndHalfExtents(other._center, boxExtends);

  return containsAabb3(sphereBox);
}