What is a generic formula for converting azimuth(from -180 to 180) to degrees(from 0 to 360)?
double azimuth = (Math.toDegrees(matrixValues[0]));
if(azimuth < 0){
azimuth += 360;
}
azimuth -= 90;
if(azimuth < 0){
azimuth += 360;
}
That's what I have tried but it doesn't seemed to work.