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
ellipseGeoEllipse2lineGeoLine2intersectionsGeoPoint2[]
Returns
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
ellipseGeoEllipse2The ellipse.
lineGeoLine2The segment.
intersectionsGeoPoint2[]The crossings in order along the segment; empty when there are none.
toleranceToleranceThe 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
ellipseGeoEllipse2circleGeoCircle2intersectionsGeoPoint2[]
Returns
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
ellipseGeoEllipse2The ellipse.
circleGeoCircle2The circle.
intersectionsGeoPoint2[]The crossings in the order of the eccentric angle; empty when there are none.
toleranceToleranceThe 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
ellipseGeoEllipse2arcGeoArc2intersectionsGeoPoint2[]
Returns
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
ellipseGeoEllipse2The ellipse.
arcGeoArc2The arc.
intersectionsGeoPoint2[]The crossings in the order of the eccentric angle; empty when there are none.
toleranceToleranceThe 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
ellipseGeoEllipse2otherGeoEllipse2intersectionsGeoPoint2[]
Returns
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
ellipseGeoEllipse2The ellipse whose eccentric angle orders the points.
otherGeoEllipse2The other ellipse.
intersectionsGeoPoint2[]The crossings; empty when there are none.
toleranceToleranceThe 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
ellipseGeoEllipse2edgeGeoEdge2intersectionsGeoPoint2[]
Returns
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
ellipseGeoEllipse2The ellipse.
edgeGeoEdge2The edge.
intersectionsGeoPoint2[]The crossings; empty when there are none.
toleranceToleranceThe 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
ellipseGeoEllipse2chainGeoPolylineArc2intersectionsGeoPoint2[]
Returns
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
ellipseGeoEllipse2The ellipse.
chainGeoPolylineArc2The chain.
intersectionsGeoPoint2[]The crossings; empty when there are none.
toleranceToleranceThe 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
ellipseGeoEllipse2loopGeoPolygonArc2intersectionsGeoPoint2[]
Returns
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
ellipseGeoEllipse2The ellipse.
loopGeoPolygonArc2The loop.
intersectionsGeoPoint2[]The crossings; empty when there are none.
toleranceToleranceThe 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
ellipseGeoEllipse2The ellipse.
rayGeoRay2The ray.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
Returns
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
ellipseGeoEllipse2The ellipse.
rayGeoRay2The ray.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.