uwacan.Position.bearing_to#

Position.bearing_to(other)#

Calculate the bearing to another coordinate.

See uwacan.positional.bearing_to for details on the implementation.

Parameters:
otherCoordinates or convertible

The coordinate to calculate the bearing to. If this is an object with latitude and longitude attributes, they will be used. Otherwise, the Position parser will be called.

Returns:
bearingDataArray

The bearing to the other coordinate.