uataq.gps.bearing#

uataq.gps.bearing(lat1, lon1, lat2, lon2)[source]#

Return the initial great-circle bearing from the first point to the second.

Parameters:
  • lat1 (ArrayLike) – Start point, in degrees.

  • lon1 (ArrayLike) – Start point, in degrees.

  • lat2 (ArrayLike) – End point, in degrees.

  • lon2 (ArrayLike) – End point, in degrees.

Returns:

Bearing in degrees clockwise from true north, in [0, 360). Inputs are broadcast together. Coincident points give 0.

Return type:

ndarray