LineUtils.ComputeOffset method

Version 1.0.0-beta002
.NET Framework 4.7
Namespace Skybrud.Essentials.Maps
Assembly Skybrud.Essentials.Maps.dll

ComputeOffset(IPoint, double, double)

Static

Returns the IPoint resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north).

The calculations are based on EquatorialRadius as the radius.

public static IPoint ComputeOffset(IPoint origin, double distance, double heading)

Parameters

origin IPoint

The IPoint from which to start.

distance Double

The distance in metres to travel.

heading Double

The heading in degrees clockwise from north.

Returns

The IPoint resulting from moving a distance from an origin in the specified heading.

ComputeOffset(IPoint, double, double, double)

Static

Returns the IPoint resulting from moving a distance from an origin in the specified heading (expressed in degrees clockwise from north).

public static IPoint ComputeOffset(IPoint origin, double distance, double heading, double radius)

Parameters

origin IPoint

The IPoint from which to start.

distance Double

The distance in metres to travel.

heading Double

The heading in degrees clockwise from north.

radius Double

The radius.

Returns

The IPoint resulting from moving a distance from an origin in the specified heading.