Table of Contents

Method TryExtendTo

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TryExtendTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2)

Extends a segment at one end to where it meets the edges of a triangle, using the default tolerance.

public static bool TryExtendTo(GeoLine2 line, GeoTriangle2 boundary, LineEnd end, out GeoLine2 result)

Parameters

line GeoLine2
boundary GeoTriangle2
end LineEnd
result GeoLine2

Returns

bool

TryExtendTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2, Tolerance)

Extends a segment at one end to where it meets the edges of a triangle, within a tolerance.

public static bool TryExtendTo(GeoLine2 line, GeoTriangle2 boundary, LineEnd end, out GeoLine2 result, Tolerance tolerance)

Parameters

line GeoLine2
boundary GeoTriangle2
end LineEnd
result GeoLine2
tolerance Tolerance

Returns

bool

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.