Table of Contents

Method Contains

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

Contains(GeoTriangle2, GeoLine2)

Checks whether a triangle holds a segment whole, its edges included, using the default tolerance.

public static bool Contains(GeoTriangle2 triangle, GeoLine2 line)

Parameters

triangle GeoTriangle2
line GeoLine2

Returns

bool

Contains(GeoTriangle2, GeoLine2, Tolerance)

Checks whether a triangle holds a segment whole, its edges included, within a tolerance.

public static bool Contains(GeoTriangle2 triangle, GeoLine2 line, Tolerance tolerance)

Parameters

triangle GeoTriangle2
line GeoLine2
tolerance Tolerance

Returns

bool

Remarks

A triangle of no width holds what lies along it, every corner of it on the segment the triangle is.

Contains(GeoTriangle2, GeoPolyline2)

Checks whether a triangle holds a polyline whole, its edges included, using the default tolerance.

public static bool Contains(GeoTriangle2 triangle, GeoPolyline2 polyline)

Parameters

triangle GeoTriangle2
polyline GeoPolyline2

Returns

bool

Contains(GeoTriangle2, GeoPolyline2, Tolerance)

Checks whether a triangle holds a polyline whole, its edges included, within a tolerance.

public static bool Contains(GeoTriangle2 triangle, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

triangle GeoTriangle2
polyline GeoPolyline2
tolerance Tolerance

Returns

bool

Remarks

A triangle of no width holds what lies along it, every corner of it on the segment the triangle is.