Table of Contents

Method TryTrimTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryTrimTo(GeoPoint2, LineEnd, out GeoEdge2)

Shortens the edge at one end back to a point on it.

public bool TryTrimTo(GeoPoint2 point, LineEnd end, out GeoEdge2 result)

Parameters

point GeoPoint2
end LineEnd
result GeoEdge2

Returns

bool

TryTrimTo(GeoPoint2, LineEnd, out GeoEdge2, Tolerance)

Shortens the edge at one end back to a point on it, within a tolerance.

public bool TryTrimTo(GeoPoint2 point, LineEnd end, out GeoEdge2 result, Tolerance tolerance)

Parameters

point GeoPoint2

The point to stop at; it has to lie on the edge.

end LineEnd

Which end to move.

result GeoEdge2

The shortened edge, or the edge unchanged.

tolerance Tolerance

The tolerance.

Returns

bool

true when the edge was shortened; otherwise, false.