intersectsPlane method

bool intersectsPlane(
  1. Plane plane
)

Returns true if the given plane intersects this bounding sphere.

Reference: Testing Sphere Against Plane in Real-Time Collision Detection by Christer Ericson (chapter 5.2.2)

Implementation

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