LineUtils.ComputeHeading method
Version 1.0.0-beta002
.NET Framework 4.7
Namespace | Skybrud.Essentials.Maps |
---|---|
Assembly | Skybrud.Essentials.Maps.dll |
ComputeHeading(double, double, double, double)
Static
Returns the heading from one point (identified by lat1
and lng1
) to
another (indentified by lat2
and lng2
).
public static double ComputeHeading(double lat1, double lng1, double lat2, double lng2)
Parameters
lat1
Double
The latitude of the origin point.
lng1
Double
The longitude of the origin point.
lat2
Double
The latitude of the destination point.
lng2
Double
The longitude of the destination point.
Returns
The heading in degrees clockwise from north.
ComputeHeading(IPoint, IPoint)
Static
Returns the heading of the line that goes from origin
to destination
.
public static double ComputeHeading(IPoint origin, IPoint destination)
Returns
The heading of the line.