General equation of a plan is:
General equation of a sphere is (xs , ys , zs is the center of the sphere):
the intersection of a plane and a sphere always forms a circle which is perpendicular to
the normal vector to the plane, and an ellipse on the projections on the x, y, z axes.
The vector normal to the plane
is: n = Ai + Bj + Ck this vector is in the direction of the line connecting sphere
center and the center of the circle formed by the intersection of the sphere with the plane.
This vector when passing through the center of the sphere (xs , ys , zs)
forms the parametric line equation
L={(x,y,z): xs + At , ys + Bt , zs + Ct}
In order to find the intersection circle center, we substitute the parametric line equation
into the plane equation.
A(xs + At) + B(ys + Bt) + C(zs + Ct) + D = 0
And the intersected circle center (xc , yc , zc) is at the point:
(xc = xs + At, yc = ys + Bt, zc = zs + Ct)
Substituting the value of t we can find the intersected circle center:

The distance of intersected circle center and the sphere center is:
Intersected circle radius is:
Condition for sphere and plane intersection:
R > d
Condition for sphere and plane tangency:
R = d
Condition for no intersection:
R < d