Method TryTrimTo
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
TryTrimTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2)
Trims a segment at one end to where it meets the edges of a triangle, using the default tolerance.
public static bool TryTrimTo(GeoLine2 line, GeoTriangle2 boundary, LineEnd end, out GeoLine2 result)
Parameters
lineGeoLine2boundaryGeoTriangle2endLineEndresultGeoLine2
Returns
TryTrimTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2, Tolerance)
Trims a segment at one end to where it meets the edges of a triangle, within a tolerance.
public static bool TryTrimTo(GeoLine2 line, GeoTriangle2 boundary, LineEnd end, out GeoLine2 result, Tolerance tolerance)
Parameters
lineGeoLine2boundaryGeoTriangle2endLineEndresultGeoLine2toleranceTolerance
Returns
Remarks
The triangle is asked as the polygon of its corners, as Lengthen2 asks a polygon; one of no width as the segment it is.