Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to calculate angle difference

public static double angleDiff(double a, double b) {
    return ((((a - b) % 360F) + 540F) % 360F) - 180F;
}
 
PREVIOUS NEXT
Tagged: #calculate #angle #difference
ADD COMMENT
Topic
Name
2+7 =