I have several compass bearings:
bTrue = 190° b1 = 250° b2 = 100° b3 = 170° b4 = 90°
I want to compare b1 - b4 and find out how close they are to bTrue. So bTrue is 100%. How much percent is then b1, b2, b3, and b4? 360°-180° would be 0%.
The use case is that have GPS locations with bearings that I am trying to match to road segments, where I also know the bearing. Besides the distance to the road I also want to consider bearing. b1 - b4 are the bearings of the road and bTrue is the bearing of the GPS point.