Algorithm

Normalized angles:

θ1 = deg θ2 = deg