Table of Contents

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

Position double

The length along the line of the nearest point.

Point Coordinate

The nearest point on the line, with Z and M interpolated on the segment.

Distance double

The distance of the point to the line; not negative.

Offset double

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

double

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

double

Point

The nearest point on the line, with Z and M interpolated on the segment.

public Coordinate Point { get; init; }

Property Value

Coordinate

Position

The length along the line of the nearest point.

public double Position { get; init; }

Property Value

double