rename three_half_pi() => three_over_two_pi()
branchless wrapAngle