get_3d_angle function

Compute an angle in 3D space