deltaLatitudeAbs function Null safety

double deltaLatitudeAbs(
  1. double latADeg,
  2. double latBDeg

Returns the shortest latitude angle distance (in degrees) between two points A and B with latitudes given by latADeg respectively latBDeg, both in degrees.

The result is always positive, in the range of 0..180 (both inclusive).


double deltaLatitudeAbs(double latADeg, double latBDeg) {
  return (latADeg - latBDeg).abs();