The dihedral angle (ϕ) is the angle between two planes.
First of all, we should know the General equation of Plane:
Ax+By+Cz+D=0 .......... (i)
Where A,B,C,D are constants.
And, Equation of plane passing through points (x1,y1,z1),(x2,y2,z2),(x3,y3,z3) is,
|x−x1y−y1z−z1x2−x1y2−y1z2−z1x3−x1y3−y1z3−z1|=0 .......... (ii)
Or,
|y2−y1z2−z1y3−y1z3−z1|(x−x1)+|z2−z1x2−x1z3−z1x3−x1|(y−y1)+|x2−x1y2−y1x3−x1y3−y1|(z−z1)=0
.......... (iii)
After Solving eqn(iii), we get;
{(y2−y1)(z3−z1)−(z2−z1)(y3−y1)}x+{(x3−x1)(z2−z1)−(x2−x1)(z3−z1)}y+{(x2−x1)(y3−y1)−(x3−x1)(y2−y1)}z+D=0} .......... (iv)
Where D is Constant term. This eqn(iv) gives the equation of plane passing through points.
Now,
From the above references, we have to calculate the Dihedral angle between the two planes:
a1x+b1y+c1z+d1=0 .......... (v)
a2x+b2y+c2z+d2=0 .......... (vi)
Which have normal vectors n1=(a1,b1,c1) and n2=(a2,b2,c2) is simply given dihedral angle through the dot product of the normals.
i.e. Cosϕ=^n1.^n2 .......... (vii)
Or,
Cosϕ=a1a2+b1b2+c1c2√a21+b21+c21√a22+b22+c22 .......... (viii)
Note: Unit Vector - If A is a vector with magnitude A ≠0), then ˆn=→A|A| is a unit vector having the same direction as →A.
Click here for: Basic concept on Dihederal angle.