intersectsPlane method

bool intersectsPlane(
  1. Plane plane
)

plane - Plane to check for intersection against.

Determines whether or not this sphere intersects a given plane.

Implementation

bool intersectsPlane(Plane plane) {
  return plane.distanceToPoint(center).abs() <= radius;
}