Method GetIntersections
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetIntersections(GeoEllipse2, GeoLine2)
Gets the points where the rim of an ellipse crosses a segment, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoLine2 line)
Parameters
ellipseGeoEllipse2lineGeoLine2
Returns
GetIntersections(GeoEllipse2, GeoLine2, Tolerance)
Gets the points where the rim of an ellipse crosses a segment, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoLine2 line, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
lineGeoLine2The segment.
toleranceToleranceThe tolerance: a segment passing within its point tolerance of the rim touches it.
Returns
- GeoPoint2[]
The crossings in order along the segment, as a circle gives them: two where it cuts across, one where it only touches, none where it misses or lies wholly inside. The segment from (-400, 50) to (400, 50) crosses the ellipse 300 by 100 centred on the origin at (-259.8, 50), then at (259.8, 50).
GetIntersections(GeoEllipse2, GeoPolyline2)
Gets the points where the rim of an ellipse crosses a polyline, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolyline2 polyline)
Parameters
ellipseGeoEllipse2polylineGeoPolyline2
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetIntersections(GeoEllipse2, GeoPolyline2, Tolerance)
Gets the points where the rim of an ellipse crosses a polyline, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolyline2 polyline, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
polylineGeoPolyline2The polyline.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings edge by edge, in the polyline's order, a point two edges share given once.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetIntersections(GeoEllipse2, GeoPolygon2)
Gets the points where the rim of an ellipse crosses the boundary of a polygon, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolygon2 polygon)
Parameters
ellipseGeoEllipse2polygonGeoPolygon2
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoEllipse2, GeoPolygon2, Tolerance)
Gets the points where the rim of an ellipse crosses the boundary of a polygon, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolygon2 polygon, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
polygonGeoPolygon2The polygon.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings edge by edge, in the polygon's order, a point two edges share given once.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoEllipse2, GeoRectangle2)
Gets the points where the rim of an ellipse crosses the boundary of a rectangle, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoRectangle2 rect)
Parameters
ellipseGeoEllipse2rectGeoRectangle2
Returns
GetIntersections(GeoEllipse2, GeoRectangle2, Tolerance)
Gets the points where the rim of an ellipse crosses the boundary of a rectangle, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoRectangle2 rect, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
rectGeoRectangle2The rectangle.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings side by side, in the rectangle's order, a corner two sides share given once.
GetIntersections(GeoEllipse2, GeoTriangle2)
Gets the points where the rim of an ellipse meets the edges of a triangle, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoTriangle2 triangle)
Parameters
ellipseGeoEllipse2triangleGeoTriangle2
Returns
GetIntersections(GeoEllipse2, GeoTriangle2, Tolerance)
Gets the points where the rim of an ellipse meets the edges of a triangle, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoTriangle2 triangle, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
triangleGeoTriangle2The triangle; one whose corners coincide exactly is read as its longest edge, a short side being the side it is.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings edge by edge, in the triangle's order.
GetIntersections(GeoEllipse2, GeoFace2)
Gets every point where the rim of an ellipse crosses the boundary of a face, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoFace2 face)
Parameters
ellipseGeoEllipse2faceGeoFace2
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoEllipse2, GeoFace2, Tolerance)
Gets every point where the rim of an ellipse crosses the boundary of a face, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoFace2 face, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
faceGeoFace2The face, whose boundary is its outline and the rim of every hole.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings of the outline, then those of each hole in turn, as a circle gives them.
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoEllipse2, GeoCircle2)
Gets the points where the rim of an ellipse crosses a circle, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoCircle2 circle)
Parameters
ellipseGeoEllipse2circleGeoCircle2
Returns
GetIntersections(GeoEllipse2, GeoCircle2, Tolerance)
Gets the points where the rim of an ellipse crosses a circle, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoCircle2 circle, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
circleGeoCircle2The circle.
toleranceToleranceThe tolerance: a circle that comes within its point tolerance of the rim touches it, and two crossings no further apart than twice it are one.
Returns
- GeoPoint2[]
Up to four points, in the order of the eccentric angle of the ellipse; none when the two lie on each other. The circle of radius 150 about the origin crosses the ellipse 300 by 100 centred there at four points, the first at (118.6, 91.9).
GetIntersections(GeoEllipse2, GeoArc2)
Gets the points where the rim of an ellipse crosses an arc, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoArc2 arc)
Parameters
ellipseGeoEllipse2arcGeoArc2
Returns
GetIntersections(GeoEllipse2, GeoArc2, Tolerance)
Gets the points where the rim of an ellipse crosses an arc, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoArc2 arc, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
arcGeoArc2The arc.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings of the circle carrying the arc that the arc reaches, within the point tolerance of its ends, in the order of the eccentric angle.
GetIntersections(GeoEllipse2, GeoEllipse2)
Gets the points where the rims of two ellipses cross, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoEllipse2 other)
Parameters
ellipseGeoEllipse2otherGeoEllipse2
Returns
GetIntersections(GeoEllipse2, GeoEllipse2, Tolerance)
Gets the points where the rims of two ellipses cross, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoEllipse2 other, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse whose eccentric angle orders the points.
otherGeoEllipse2The other ellipse.
toleranceToleranceThe tolerance: rims that come within its point tolerance of each other touch, and two crossings no further apart than twice it are one.
Returns
- GeoPoint2[]
Up to four points, in the order of the eccentric angle of the first ellipse; none when the two are the same ellipse. The ellipse 300 by 100 and the same ellipse turned a quarter, both centred on the origin, cross at (94.9, 94.9) first, then at the three points mirrored from it.
GetIntersections(GeoEllipse2, GeoEdge2)
Gets the points where the rim of an ellipse crosses an edge, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoEdge2 edge)
Parameters
ellipseGeoEllipse2edgeGeoEdge2
Returns
GetIntersections(GeoEllipse2, GeoEdge2, Tolerance)
Gets the points where the rim of an ellipse crosses an edge, within a tolerance: as a segment or as an arc, whichever the edge is.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoEdge2 edge, Tolerance tolerance)
Parameters
ellipseGeoEllipse2edgeGeoEdge2toleranceTolerance
Returns
GetIntersections(GeoEllipse2, GeoPolylineArc2)
Gets the points where the rim of an ellipse crosses a curved chain, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolylineArc2 chain)
Parameters
ellipseGeoEllipse2chainGeoPolylineArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoEllipse2, GeoPolylineArc2, Tolerance)
Gets the points where the rim of an ellipse crosses a curved chain, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
chainGeoPolylineArc2The chain.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings edge by edge, on the arcs themselves, a point two edges share given once.
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoEllipse2, GeoPolygonArc2)
Gets the points where the rim of an ellipse crosses a curved loop, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolygonArc2 loop)
Parameters
ellipseGeoEllipse2loopGeoPolygonArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoEllipse2, GeoPolygonArc2, Tolerance)
Gets the points where the rim of an ellipse crosses a curved loop, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
ellipseGeoEllipse2The ellipse.
loopGeoPolygonArc2The loop.
toleranceToleranceThe tolerance.
Returns
- GeoPoint2[]
The crossings edge by edge, on the arcs themselves, a point two edges share given once.
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoEllipse2, GeoRay2)
Gets the points where a ray crosses the rim of an ellipse, using the default tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoRay2 ray)
Parameters
ellipseGeoEllipse2rayGeoRay2
Returns
GetIntersections(GeoEllipse2, GeoRay2, Tolerance)
Gets the points where a ray crosses the rim of an ellipse, within a tolerance.
public static GeoPoint2[] GetIntersections(GeoEllipse2 ellipse, GeoRay2 ray, Tolerance tolerance)
Parameters
ellipseGeoEllipse2rayGeoRay2toleranceTolerance