containsSphere method

bool containsSphere(
  1. Sphere other
)

Return if this contains other.

Implementation

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

  return containsAabb3(sphereBox);
}