Table of Contents

Method ToLine

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

ToLine(double, double)

Gets the line segment covering the line between two signed distances from its origin.

public GeoLine2 ToLine(double from, double to)

Parameters

from double

The distance at which the segment starts; negative is behind the origin.

to double

The distance at which the segment ends.

Returns

GeoLine2

The segment from the point at from to the point at to; it runs backwards when to is the smaller.

Remarks

The line through (10, 20) along X, between -30 and 70, is the segment from (-20, 20) to (80, 20).

Exceptions

ArgumentOutOfRangeException

Thrown when either distance is NaN or infinite.