Method Extend
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Extend(double)
Extends the line along itself to a parameter past one of its ends, as AutoCAD's Extend: below nought moves
its start back, above Length moves its end on.
public override void Extend(double newParameter)
Parameters
newParameterdoubleThe parameter, the distance from the start along the line, below nought or above its length.
Exceptions
- ArgumentOutOfRangeException
Thrown when the parameter lies on the line, or is not a finite number.
- InvalidOperationException
Thrown when the line has no length to give it a direction, or is erased.
Extend(bool, GeoPoint3)
Extends the line at one end to a point on the infinite line through it, as AutoCAD's Extend.
public override void Extend(bool extendStart, GeoPoint3 toPoint)
Parameters
extendStartboolWhether the start is moved, else the end.
toPointGeoPoint3The point, within the point tolerance of the infinite line through the line.
Exceptions
- ArgumentException
Thrown when the point is off the line extended.
- InvalidOperationException
Thrown when the line is erased.