Table of Contents

Method GetClosestEdge

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetClosestEdge(GeoEllipse2, GeoPolygon2)

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

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolygon2 polygon)

Parameters

ellipse GeoEllipse2
polygon GeoPolygon2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetClosestEdge(GeoEllipse2, GeoPolygon2, Tolerance)

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

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolygon2 polygon, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

polygon GeoPolygon2

The polygon.

tolerance Tolerance

The tolerance; not read, since each edge is measured as a segment.

Returns

GeoLine2

The edge least far from the region, the earlier one winning a tie, as every edge reaching into the ellipse is nought away.

Exceptions

ArgumentNullException

Thrown when the polygon is null.

GetClosestEdge(GeoEllipse2, GeoPolyline2)

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

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolyline2 polyline)

Parameters

ellipse GeoEllipse2
polyline GeoPolyline2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetClosestEdge(GeoEllipse2, GeoPolyline2, Tolerance)

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

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

polyline GeoPolyline2

The polyline.

tolerance Tolerance

The tolerance; not read, since each edge is measured as a segment.

Returns

GeoLine2

The edge least far from the region, the earlier one winning a tie.

Exceptions

ArgumentNullException

Thrown when the polyline is null.

GetClosestEdge(GeoEllipse2, GeoRectangle2)

Gets the side of a rectangle nearest an ellipse, using the default tolerance.

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoRectangle2 rect)

Parameters

ellipse GeoEllipse2
rect GeoRectangle2

Returns

GeoLine2

GetClosestEdge(GeoEllipse2, GeoRectangle2, Tolerance)

Gets the side of a rectangle nearest an ellipse, within a tolerance.

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoRectangle2 rect, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

rect GeoRectangle2

The rectangle.

tolerance Tolerance

The tolerance; not read, since each side is measured as a segment.

Returns

GeoLine2

The side least far from the region, the earlier one winning a tie.

GetClosestEdge(GeoEllipse2, GeoTriangle2)

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

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoTriangle2 triangle)

Parameters

ellipse GeoEllipse2
triangle GeoTriangle2

Returns

GeoLine2

GetClosestEdge(GeoEllipse2, GeoTriangle2, Tolerance)

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

public static GeoLine2 GetClosestEdge(GeoEllipse2 ellipse, GeoTriangle2 triangle, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

triangle GeoTriangle2

The triangle; one whose corners coincide exactly is asked edge by edge.

tolerance Tolerance

The tolerance the triangle is read with.

Returns

GeoLine2

The edge least far from the region, the earlier one winning a tie.

GetClosestEdge(GeoEllipse2, GeoPolygonArc2)

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

public static GeoEdge2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolygonArc2 loop)

Parameters

ellipse GeoEllipse2
loop GeoPolygonArc2

Returns

GeoEdge2

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetClosestEdge(GeoEllipse2, GeoPolygonArc2, Tolerance)

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

public static GeoEdge2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

loop GeoPolygonArc2

The loop.

tolerance Tolerance

The tolerance.

Returns

GeoEdge2

The edge least far from the region, measured on the arcs themselves, the earlier one winning a tie.

Exceptions

ArgumentNullException

Thrown when the loop is null.

GetClosestEdge(GeoEllipse2, GeoPolylineArc2)

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

public static GeoEdge2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolylineArc2 chain)

Parameters

ellipse GeoEllipse2
chain GeoPolylineArc2

Returns

GeoEdge2

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetClosestEdge(GeoEllipse2, GeoPolylineArc2, Tolerance)

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

public static GeoEdge2 GetClosestEdge(GeoEllipse2 ellipse, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

chain GeoPolylineArc2

The chain.

tolerance Tolerance

The tolerance.

Returns

GeoEdge2

The edge least far from the region, measured on the arcs themselves, the earlier one winning a tie.

Exceptions

ArgumentNullException

Thrown when the chain is null.