uwacan.positional.angle_between#
- angle_between(lat, lon, lat_1, lon_1, lat_2, lon_2)[source]#
Calculate the angle between two coordinates, as seen from a center vertex.
The angle is counted positive if the second point is clockwise of the first point, as seen from the center vertex.
- Parameters:
- latfloat
Latitude of the center vertex in degrees.
- lonfloat
Longitude of the center vertex in degrees.
- lat_1float
Latitude of the first point in degrees.
- lon_1float
Longitude of the first point in degrees.
- lat_2float
Latitude of the second point in degrees.
- lon_2float
Longitude of the second point in degrees.
- Returns:
- float
The angle between the two points as seen from the center vertex, in degrees. The angle is normalized to the range (-180, 180].