This is really a math problem but I am trying to get the sin for angles in compass bearings.
Azimuth starts from North and bearings are from 0 to 359 degrees. All goes well from 0 to 90 but then the results are incorrect due to the fact that java math requires angles in radians and higher angles return minus results. What would be the best solution to get around this. Should I break the compass into quadrants and return results to their specific quadrant?
SIN(180-x) = SIN(x)
SIN(180+x) = -SIN(x) of course you have to convert to radians
SIN(90-x) = COS(x)
SIN(90+x) = COS(x)