List of utility methods to do Double Calculate
long | ceil(double double1, double double2) Ceil function in original algorithm return (long) (double1 - double2 * Math.floor(double1 / double2)); |
double | midpoint(double a, double b) Compute the midpoint of two values. return (a + b) * 0.5;
|
double | angularDifference(double hdg, double brg) Calculate the absolute angular difference between the two headings double absDiff = Math.abs(hdg - brg); if (absDiff > 180) { return 360 - absDiff; return absDiff; |