forked from: shortest angle on circle

