Home > @magiclane/maps-sdk > Coordinates > azimuth
Coordinates.azimuth() method
Calculates the azimuth (bearing) from this coordinate to target.
The azimuth is computed according to the ellipsoid model of WGS84 and returned in degrees. If the points are effectively identical or invalid, the method returns 0.0.
Signature:
azimuth(target: Coordinates): number;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
target |
The destination Coordinates to which the azimuth is calculated. |
Returns:
number
Azimuth in degrees from this coordinate to target.