Android Utililty Methods Double Calculate

List of utility methods to do Double Calculate


The list of methods to do Double Calculate are organized into topic(s).


longceil(double double1, double double2)
Ceil function in original algorithm
return (long) (double1 - double2 * Math.floor(double1 / double2));
doublemidpoint(double a, double b)
Compute the midpoint of two values.
return (a + b) * 0.5;
doubleangularDifference(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;