Table of Contents

Method OnSegmentAt

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

OnSegmentAt(int, GeoPoint2, double)

Gets whether a point of the plane lies on the segment that leaves a vertex, within the point tolerance, as AutoCAD's OnSegmentAt.

public bool OnSegmentAt(int index, GeoPoint2 pt2d, double value)

Parameters

index int

The index of the vertex, from nought.

pt2d GeoPoint2

The point, in the system of the polyline's normal.

value double

Not read: AutoCAD's parameter of the point on the segment, which it does not give back either.

Returns

bool

Whether the point is on the segment; false where the vertex leaves none.

Exceptions

ArgumentOutOfRangeException

Thrown when there is no vertex of the index.