Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TryIntersectWith(GeoEllipse2, GeoLine2, out GeoPoint2[])

Tries to find where the rim of an ellipse crosses a segment, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoLine2 line, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2
line GeoLine2
intersections GeoPoint2[]

Returns

bool

TryIntersectWith(GeoEllipse2, GeoLine2, out GeoPoint2[], Tolerance)

Tries to find where the rim of an ellipse crosses a segment, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoLine2 line, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

line GeoLine2

The segment.

intersections GeoPoint2[]

The crossings in order along the segment; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true if the segment crosses or touches the rim; otherwise, false, a segment wholly inside included.

TryIntersectWith(GeoEllipse2, GeoCircle2, out GeoPoint2[])

Tries to find where the rim of an ellipse crosses a circle, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoCircle2 circle, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2
circle GeoCircle2
intersections GeoPoint2[]

Returns

bool

TryIntersectWith(GeoEllipse2, GeoCircle2, out GeoPoint2[], Tolerance)

Tries to find where the rim of an ellipse crosses a circle, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoCircle2 circle, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

circle GeoCircle2

The circle.

intersections GeoPoint2[]

The crossings in the order of the eccentric angle; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true if the two cross or touch; otherwise, false, for a circle wholly inside or outside, or lying on the rim.

TryIntersectWith(GeoEllipse2, GeoArc2, out GeoPoint2[])

Tries to find where the rim of an ellipse crosses an arc, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoArc2 arc, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2
arc GeoArc2
intersections GeoPoint2[]

Returns

bool

TryIntersectWith(GeoEllipse2, GeoArc2, out GeoPoint2[], Tolerance)

Tries to find where the rim of an ellipse crosses an arc, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoArc2 arc, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

arc GeoArc2

The arc.

intersections GeoPoint2[]

The crossings in the order of the eccentric angle; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true if the arc crosses or touches the rim; otherwise, false.

TryIntersectWith(GeoEllipse2, GeoEllipse2, out GeoPoint2[])

Tries to find where the rims of two ellipses cross, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoEllipse2 other, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2
other GeoEllipse2
intersections GeoPoint2[]

Returns

bool

TryIntersectWith(GeoEllipse2, GeoEllipse2, out GeoPoint2[], Tolerance)

Tries to find where the rims of two ellipses cross, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoEllipse2 other, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse whose eccentric angle orders the points.

other GeoEllipse2

The other ellipse.

intersections GeoPoint2[]

The crossings; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true if the rims cross or touch; otherwise, false, for one wholly inside the other, apart, or the same.

TryIntersectWith(GeoEllipse2, GeoEdge2, out GeoPoint2[])

Tries to find where the rim of an ellipse crosses an edge, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoEdge2 edge, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2
edge GeoEdge2
intersections GeoPoint2[]

Returns

bool

TryIntersectWith(GeoEllipse2, GeoEdge2, out GeoPoint2[], Tolerance)

Tries to find where the rim of an ellipse crosses an edge, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoEdge2 edge, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

edge GeoEdge2

The edge.

intersections GeoPoint2[]

The crossings; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true if the edge crosses or touches the rim; otherwise, false.

TryIntersectWith(GeoEllipse2, GeoPolylineArc2, out GeoPoint2[])

Tries to find where the rim of an ellipse crosses a curved chain, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoPolylineArc2 chain, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2
chain GeoPolylineArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoEllipse2, GeoPolylineArc2, out GeoPoint2[], Tolerance)

Tries to find where the rim of an ellipse crosses a curved chain, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoPolylineArc2 chain, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

chain GeoPolylineArc2

The chain.

intersections GeoPoint2[]

The crossings; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true if the chain crosses or touches the rim anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoEllipse2, GeoPolygonArc2, out GeoPoint2[])

Tries to find where the rim of an ellipse crosses a curved loop, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoPolygonArc2 loop, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2
loop GeoPolygonArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoEllipse2, GeoPolygonArc2, out GeoPoint2[], Tolerance)

Tries to find where the rim of an ellipse crosses a curved loop, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoPolygonArc2 loop, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

loop GeoPolygonArc2

The loop.

intersections GeoPoint2[]

The crossings; empty when there are none.

tolerance Tolerance

The tolerance.

Returns

bool

true if the loop crosses or touches the rim anywhere; otherwise, false, one wholly inside the other included.

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoEllipse2, GeoRay2, out GeoPoint2[])

Tries to find where a ray crosses the rim of an ellipse, using the default tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoRay2 ray, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2

The ellipse.

ray GeoRay2

The ray.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

TryIntersectWith(GeoEllipse2, GeoRay2, out GeoPoint2[], Tolerance)

Tries to find where a ray crosses the rim of an ellipse, within a tolerance.

public static bool TryIntersectWith(GeoEllipse2 ellipse, GeoRay2 ray, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

ray GeoRay2

The ray.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool