Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

calculate smallest angle difference

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