public static double longitudeDiff ( double a , double b ) { a = to180 ( a ) ; b = to180 ( b ) ; return Math . abs ( to180 ( a - b ) ) ; }
Returns the difference between two longitude values . The returned value is always > = 0 .