A plane through \(P=(x_0,y_0,z_0)\) with normal \((a,b,c)\) satisfies \(a(x-x_0)+b(y-y_0)+c(z-z_0)=0\). In the form \(ax+by+cz+d=0\), the first three coefficients give the normal.
Use the angle between normals for the angle between planes. The smaller angle is acute or right for intersecting planes. A line direction perpendicular to the normal is parallel to the plane. Test a point on the line to see whether the line lies in the plane.
For \(Q=(x_1,y_1,z_1)\), divide \(\lvert ax_1+by_1+cz_1+d\rvert\) by \(\sqrt{a^2+b^2+c^2}\). For parallel planes, choose a point on one plane and find its distance to the other.