n1x + n2y + n3z + d = 0
where
d = -(a.n)
a =
(a1)
(a2)
(a3)
the position vector of a point on the plane
n =
n1
n2
n3
a vector perpendicular to the plane
The angle between two planes is the same as
the angle between the normal vectors for the two planes.