Struct LineProjection
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Extensions.dll
Where a point lies relative to a line (ADR 0035), the result of SpatialNET.LinearReferencing.ProjectDetailed(SpatialNET.IPolyline2D,SpatialNET.Coordinate).
public readonly record struct LineProjection : IEquatable<LineProjection>Implements
Inherited Members
Constructors
LineProjection(double, Coordinate, double, double)
Where a point lies relative to a line (ADR 0035), the result of SpatialNET.LinearReferencing.ProjectDetailed(SpatialNET.IPolyline2D,SpatialNET.Coordinate).
public LineProjection(double Position, Coordinate Point, double Distance, double Offset)Parameters
Positiondouble-
The length along the line of the nearest point.
PointCoordinate-
The nearest point on the line, with Z and M interpolated on the segment.
Distancedouble-
The distance of the point to the line; not negative.
Offsetdouble-
The distance with a sign: positive to the left of the direction of the line, negative to the right.
Properties
Distance
The distance of the point to the line; not negative.
public double Distance { get; init; }Property Value
Offset
The distance with a sign: positive to the left of the direction of the line, negative to the right.
public double Offset { get; init; }Property Value
Point
The nearest point on the line, with Z and M interpolated on the segment.
public Coordinate Point { get; init; }Property Value
Position
The length along the line of the nearest point.
public double Position { get; init; }