LineUtils Class

Version 1.0.0-beta002
.NET Framework 4.7
Namespace Skybrud.Essentials.Maps
Assembly Skybrud.Essentials.Maps.dll
Visibility Public
Keywords Static
Inheritance Object

Static class with various utility/helper methods for working with lines and line strings.

public static class LineUtils { }

Methods

Returns the heading from one point (identified by lat1 and lng1) to another (indentified by lat2 and lng2).

Returns the heading of the line that goes from origin to destination.

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.

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

Returns the point of intersections between the two lines defined by the points a1, a2, b1 and b2.

Returns the point of intersection between line1 and line2.

Gets the length of the line or line string represented by the specified points.

Gets the length of the line or line string represented by the specified points.

Returns whether the two lines by the points a1, a2, b1 and b2 intersect.

Returns whether the lines line1 and line2 intersect.

Returns whether the two lines by the points a1, a2, b1 and b2 intersect.

Returns whether the lines line1 and line2 intersect.