Angle θ between line with DRs (a₁,b₁,c₁) and plane ax+by+cz+d=0. Note sin (not cos) because θ is measured from the plane, not from the normal. Complementary to the angle between the line and the normal.
Derivation
Let line L have direction vector b=(a1,b1,c1) and plane Π have normal n=(a,b,c).
The angle ϕ between b and n satisfies:
cosϕ=∣b∣∣n∣∣b⋅n∣
The angle θ between the line and the plane is the complement of ϕ: