testPlaneSweptSphere

Test whether the plane with the general plane equation <i>a*x + b*y + c*z + d = 0</i> intersects the sphere moving from center position <code>(t0X, t0Y, t0Z)</code> to <code>(t1X, t1Y, t1Z)</code> and having the given <code>radius</code>. <p> The normal vector <code>(a, b, c)</code> of the plane equation needs to be normalized. <p> Reference: Book "Real-Time Collision Detection" chapter 5.5.3 "Intersecting Moving Sphere Against Plane"

@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 t0X the x coordinate of the start position of the sphere @param t0Y the y coordinate of the start position of the sphere @param t0Z the z coordinate of the start position of the sphere @param r the sphere's radius @param t1X the x coordinate of the end position of the sphere @param t1Y the y coordinate of the end position of the sphere @param t1Z the z coordinate of the end position of the sphere @return <code>true</code> if the sphere intersects the plane; <code>false</code> otherwise

static
bool
testPlaneSweptSphere
(
double a
,
double b
,
double c
,
double d
,
double t0X
,
double t0Y
,
double t0Z
,
double r
,
double t1X
,
double t1Y
,
double t1Z
)

Meta