BUGFIX:
- negative R (signal for "pick the greater than 180 degree path") should
become positive before calculations are made, not after