richsmith/sexytopo

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

Opened this issue · 0 comments

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