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
ellipseGeoEllipse2polygonGeoPolygon2
Returns
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
ellipseGeoEllipse2The ellipse.
polygonGeoPolygon2The polygon.
toleranceToleranceThe 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
ellipseGeoEllipse2polylineGeoPolyline2
Returns
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
ellipseGeoEllipse2The ellipse.
polylineGeoPolyline2The polyline.
toleranceToleranceThe 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
ellipseGeoEllipse2rectGeoRectangle2
Returns
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
ellipseGeoEllipse2The ellipse.
rectGeoRectangle2The rectangle.
toleranceToleranceThe 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
ellipseGeoEllipse2triangleGeoTriangle2
Returns
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
ellipseGeoEllipse2The ellipse.
triangleGeoTriangle2The triangle; one whose corners coincide exactly is asked edge by edge.
toleranceToleranceThe 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
ellipseGeoEllipse2loopGeoPolygonArc2
Returns
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
ellipseGeoEllipse2The ellipse.
loopGeoPolygonArc2The loop.
toleranceToleranceThe 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
ellipseGeoEllipse2chainGeoPolylineArc2
Returns
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
ellipseGeoEllipse2The ellipse.
chainGeoPolylineArc2The chain.
toleranceToleranceThe 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.