get_2d_angle function

Compute an angle in 2D space