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
polygonGeoPolygon2
Returns
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
polygonGeoPolygon2toleranceTolerance
Returns
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
polylineGeoPolyline2
Returns
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
polylineGeoPolyline2toleranceTolerance
Returns
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
rectGeoRectangle2
Returns
GetClosestEdge(GeoRectangle2, Tolerance)
Gets the edge of a rectangle nearest this ellipse, within a tolerance.
public GeoLine2 GetClosestEdge(GeoRectangle2 rect, Tolerance tolerance)
Parameters
rectGeoRectangle2toleranceTolerance
Returns
GetClosestEdge(GeoTriangle2)
Gets the edge of a triangle nearest this ellipse, using the default tolerance.
public GeoLine2 GetClosestEdge(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2
Returns
GetClosestEdge(GeoTriangle2, Tolerance)
Gets the edge of a triangle nearest this ellipse, within a tolerance.
public GeoLine2 GetClosestEdge(GeoTriangle2 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle2toleranceTolerance
Returns
GetClosestEdge(GeoPolygonArc2)
Gets the edge of a curved loop nearest this ellipse, using the default tolerance.
public GeoEdge2 GetClosestEdge(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
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
loopGeoPolygonArc2toleranceTolerance
Returns
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
chainGeoPolylineArc2
Returns
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
chainGeoPolylineArc2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.