Suppose we have a point Q(x0,y0,z0)Q(x_0,y_0,z_0) and a plane Ax+By+Cz+D=0Ax+By+Cz+D=0, we have the formula of the distance from the point to the plane Ddist=Ax0+By0+Cz0+DA2+B2+C2D_{dist}=\frac{|Ax_0+By_0+Cz_0+D|}{\sqrt{A^2+B^2+C^2}} it can ...