/// <summary> /// Computes the distance between two points. /// </summary> /// <param name="pos1">The first position.</param> /// <param name="pos2">The second position.</param> /// <returns>The distance between two points</returns> public static double ComputeDistance(TrackPoint pos1, TrackPoint pos2) { return(ComputeDistance(pos1.Latitude, pos1.Longitude, pos2.Latitude, pos2.Longitude)); }