fix incorrect angle calculations

was causing hit testing on wedges and annular wedges to fail
Merge branch 'master' into fix/hit_wedge