Method PointOnBearingRAD
PointOnBearingRAD(Double, Double, Double, Double, SpatialContext, IPoint)
Given a start point (startLat, startLon) and a bearing on a sphere of radius sphereRadius, return the destination point.
Declaration
public static IPoint PointOnBearingRAD(double startLat, double startLon, double distanceRAD, double bearingRAD, SpatialContext ctx, IPoint reuse)
Parameters
Type | Name | Description |
---|---|---|
System.Double | startLat | The starting point latitude, in radians |
System.Double | startLon | The starting point longitude, in radians |
System.Double | distanceRAD | The distance to travel along the bearing in radians. |
System.Double | bearingRAD | The bearing, in radians. North is a 0, moving clockwise till radians(360). |
SpatialContext | ctx | |
IPoint | reuse | A preallocated object to hold the results. |
Returns
Type | Description |
---|---|
IPoint | The destination point, in radians. First entry is latitude, second is longitude |