Table of Contents

Method GetClosestEdge

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GetClosestEdge(GeoPolygon2)

Gets the edge of a polygon nearest this ellipse, using the default tolerance.

public GeoLine2 GetClosestEdge(GeoPolygon2 polygon)

Parameters

polygon GeoPolygon2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetClosestEdge(GeoPolygon2, Tolerance)

Gets the edge of a polygon nearest this ellipse, within a tolerance.

public GeoLine2 GetClosestEdge(GeoPolygon2 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetClosestEdge(GeoPolyline2)

Gets the edge of a polyline nearest this ellipse, using the default tolerance.

public GeoLine2 GetClosestEdge(GeoPolyline2 polyline)

Parameters

polyline GeoPolyline2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetClosestEdge(GeoPolyline2, Tolerance)

Gets the edge of a polyline nearest this ellipse, within a tolerance.

public GeoLine2 GetClosestEdge(GeoPolyline2 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetClosestEdge(GeoRectangle2)

Gets the edge of a rectangle nearest this ellipse, using the default tolerance.

public GeoLine2 GetClosestEdge(GeoRectangle2 rect)

Parameters

rect GeoRectangle2

Returns

GeoLine2

GetClosestEdge(GeoRectangle2, Tolerance)

Gets the edge of a rectangle nearest this ellipse, within a tolerance.

public GeoLine2 GetClosestEdge(GeoRectangle2 rect, Tolerance tolerance)

Parameters

rect GeoRectangle2
tolerance Tolerance

Returns

GeoLine2

GetClosestEdge(GeoTriangle2)

Gets the edge of a triangle nearest this ellipse, using the default tolerance.

public GeoLine2 GetClosestEdge(GeoTriangle2 triangle)

Parameters

triangle GeoTriangle2

Returns

GeoLine2

GetClosestEdge(GeoTriangle2, Tolerance)

Gets the edge of a triangle nearest this ellipse, within a tolerance.

public GeoLine2 GetClosestEdge(GeoTriangle2 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle2
tolerance Tolerance

Returns

GeoLine2

GetClosestEdge(GeoPolygonArc2)

Gets the edge of a curved loop nearest this ellipse, using the default tolerance.

public GeoEdge2 GetClosestEdge(GeoPolygonArc2 loop)

Parameters

loop GeoPolygonArc2

Returns

GeoEdge2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetClosestEdge(GeoPolygonArc2, Tolerance)

Gets the edge of a curved loop nearest this ellipse, within a tolerance.

public GeoEdge2 GetClosestEdge(GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc2
tolerance Tolerance

Returns

GeoEdge2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetClosestEdge(GeoPolylineArc2)

Gets the edge of a curved chain nearest this ellipse, using the default tolerance.

public GeoEdge2 GetClosestEdge(GeoPolylineArc2 chain)

Parameters

chain GeoPolylineArc2

Returns

GeoEdge2

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetClosestEdge(GeoPolylineArc2, Tolerance)

Gets the edge of a curved chain nearest this ellipse, within a tolerance.

public GeoEdge2 GetClosestEdge(GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc2
tolerance Tolerance

Returns

GeoEdge2

Exceptions

ArgumentNullException

Thrown when the chain is null.