testPlaneSphere

Test whether the plane with the general plane equation <i>a*x + b*y + c*z + d = 0</i> intersects the sphere with center <code>(centerX, centerY, centerZ)</code> and <code>radius</code>. <p> Reference: <a href="http://math.stackexchange.com/questions/943383/determine-circle-of-intersection-of-plane-and-sphere">http://math.stackexchange.com</a>

@param a the x factor in the plane equation @param b the y factor in the plane equation @param c the z factor in the plane equation @param d the constant in the plane equation @param centerX the x coordinate of the sphere's center @param centerY the y coordinate of the sphere's center @param centerZ the z coordinate of the sphere's center @param radius the radius of the sphere @return <code>true</code> iff the plane intersects the sphere; <code>false</code> otherwise

public static
bool
testPlaneSphere
(
double a
,
double b
,
double c
,
double d
,
double centerX
,
double centerY
,
double centerZ
,
double radius
)

Meta