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
Returns
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
pointGeoPoint2The point to stop at; it has to lie on the edge.
endLineEndWhich end to move.
resultGeoEdge2The shortened edge, or the edge unchanged.
toleranceToleranceThe tolerance.
Returns
- bool
true when the edge was shortened; otherwise, false.