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 GeoLine3 ToLine(double from, double to)
Parameters
fromdoubleThe distance at which the segment starts; negative is behind the origin.
todoubleThe distance at which the segment ends.
Returns
- GeoLine3
The segment from the point at
fromto the point atto; it runs backwards whentois the smaller.
Remarks
The line through (10, 20, 30) along X, between -30 and 70, is the segment from (-20, 20, 30) to (80, 20, 30).
Exceptions
- ArgumentOutOfRangeException
Thrown when either distance is NaN or infinite.