@Pure
	public static boolean intersectsSphereCapsule(
			double sphereCenterx, double sphereCentery, double sphereCenterz, double sphereRadius,
			double capsuleAx, double capsuleAy, double capsuleAz,
			double capsuleBx, double capsuleBy, double capsuleBz,
			double capsuleRadius) {
		// Compute (squared) distance between sphere center and capsule line segment
		double dist2 = AbstractSegment3F.distanceSquaredSegmentPoint(
				capsuleAx, capsuleAy, capsuleAz, capsuleBx, capsuleBy, capsuleBz,
				sphereCenterx, sphereCentery, sphereCenterz);
		// If (squared) distance smaller than (squared) sum of radii, they collide
		double radius = sphereRadius + capsuleRadius;
		return dist2 < radius * radius;
	}
@ Pure public static boolean intersectsSphereCapsule ( double sphereCenterx , double sphereCentery , double sphereCenterz , double sphereRadius , double capsuleAx , double capsuleAy , double capsuleAz , double capsuleBx , double capsuleBy , double capsuleBz , double capsuleRadius ) { double dist2 = AbstractSegment3F . distanceSquaredSegmentPoint ( capsuleAx , capsuleAy , capsuleAz , capsuleBx , capsuleBy , capsuleBz , sphereCenterx , sphereCentery , sphereCenterz ) ; double radius = sphereRadius + capsuleRadius ; return dist2 < radius * radius ; }
Replies if the specified sphere intersects the specified capsule.
@param sphereCenterx - center of the sphere
@param sphereCentery - center of the sphere
@param sphereCenterz - center of the sphere
@param sphereRadius - radius of the sphere
@param capsuleAx - Medial line segment start point of the capsule
@param capsuleAy - Medial line segment start point of the capsule
@param capsuleAz - Medial line segment start point of the capsule
@param capsuleBx - Medial line segment end point of the capsule
@param capsuleBy - Medial line segment end point of the capsule
@param capsuleBz - Medial line segment end point of the capsule
@param capsuleRadius - radius of the capsule
@return <code>true</code> if intersecting, otherwise <code>false</code>