Table of Contents

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

ellipse GeoEllipse2
line GeoLine2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

line GeoLine2

The segment.

tolerance Tolerance

The 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

ellipse GeoEllipse2
polyline GeoPolyline2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

polyline GeoPolyline2

The polyline.

tolerance Tolerance

The 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

ellipse GeoEllipse2
polygon GeoPolygon2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

polygon GeoPolygon2

The polygon.

tolerance Tolerance

The 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

ellipse GeoEllipse2
rect GeoRectangle2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

rect GeoRectangle2

The rectangle.

tolerance Tolerance

The 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

ellipse GeoEllipse2
triangle GeoTriangle2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

triangle GeoTriangle2

The triangle; one whose corners coincide exactly is read as its longest edge, a short side being the side it is.

tolerance Tolerance

The 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

ellipse GeoEllipse2
face GeoFace2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

face GeoFace2

The face, whose boundary is its outline and the rim of every hole.

tolerance Tolerance

The 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

ellipse GeoEllipse2
circle GeoCircle2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

circle GeoCircle2

The circle.

tolerance Tolerance

The 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

ellipse GeoEllipse2
arc GeoArc2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

arc GeoArc2

The arc.

tolerance Tolerance

The 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

ellipse GeoEllipse2
other GeoEllipse2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse whose eccentric angle orders the points.

other GeoEllipse2

The other ellipse.

tolerance Tolerance

The 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

ellipse GeoEllipse2
edge GeoEdge2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2
edge GeoEdge2
tolerance Tolerance

Returns

GeoPoint2[]

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

ellipse GeoEllipse2
chain GeoPolylineArc2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

chain GeoPolylineArc2

The chain.

tolerance Tolerance

The 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

ellipse GeoEllipse2
loop GeoPolygonArc2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2

The ellipse.

loop GeoPolygonArc2

The loop.

tolerance Tolerance

The 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

ellipse GeoEllipse2
ray GeoRay2

Returns

GeoPoint2[]

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

ellipse GeoEllipse2
ray GeoRay2
tolerance Tolerance

Returns

GeoPoint2[]