richsmith / sexytopo

The SexyTopo cave surveying app for Android
GNU General Public License v3.0
29 stars 13 forks source link

Cross section direction miscalculated when legs are either side of 0 degrees #176

Open tarquinwj opened 2 years ago

tarquinwj commented 2 years ago

1 2 2 10 0 2 3 2 350 0

New cross section on station 2.

Cross section direction should be 0. Cross section direction is 180.

It takes the direction bearing numerically half way between the directions ( ( 10 + 350 ) / 2 ), rather than half way between the physical directions.

Android 11 SexyTopo 1.6.1