Use sinθ=∣d⋅n∣∣d∣∣n∣\sin \theta = \frac{|\mathbf{d} \cdot \mathbf{n}|}{|\mathbf{d}| |\mathbf{n}|}sinθ=∣d∣∣n∣∣d⋅n∣.