Method TryIntersectWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryIntersectWith(GeoArc2, out GeoPoint2[])
Tries to find where this face meets an arc.
public bool TryIntersectWith(GeoArc2 arc, out GeoPoint2[] intersections)
Parameters
Returns
Remarks
This is GetIntersections(GeoArc2, Tolerance) read a second way -- the list, plus
whether it is empty -- so a caller who only wants to know whether need not measure the array.
It is built here rather than forwarded to Core because there is no arithmetic in it: the
crossing itself is worked out in one place and this only reports on it.
TryIntersectWith(GeoArc2, out GeoPoint2[], Tolerance)
Tries to find where this face meets an arc, within a tolerance.
public bool TryIntersectWith(GeoArc2 arc, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
arcGeoArc2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoCircle2, out GeoPoint2[])
Tries to find where this face meets a circle.
public bool TryIntersectWith(GeoCircle2 circle, out GeoPoint2[] intersections)
Parameters
circleGeoCircle2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoCircle2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a circle, within a tolerance.
public bool TryIntersectWith(GeoCircle2 circle, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
circleGeoCircle2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoEdge2, out GeoPoint2[])
Tries to find where this face meets an edge.
public bool TryIntersectWith(GeoEdge2 edge, out GeoPoint2[] intersections)
Parameters
Returns
TryIntersectWith(GeoEdge2, out GeoPoint2[], Tolerance)
Tries to find where this face meets an edge, within a tolerance.
public bool TryIntersectWith(GeoEdge2 edge, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
edgeGeoEdge2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoLine2, out GeoPoint2[])
Tries to find where this face meets a segment.
public bool TryIntersectWith(GeoLine2 line, out GeoPoint2[] intersections)
Parameters
Returns
TryIntersectWith(GeoLine2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a segment, within a tolerance.
public bool TryIntersectWith(GeoLine2 line, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
lineGeoLine2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
Remarks
A segment or a face with a coordinate that is not a finite number meets nothing, and the answer is false.
TryIntersectWith(GeoPolygon2, out GeoPoint2[])
Tries to find where this face meets a polygon.
public bool TryIntersectWith(GeoPolygon2 polygon, out GeoPoint2[] intersections)
Parameters
polygonGeoPolygon2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoPolygon2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a polygon, within a tolerance.
public bool TryIntersectWith(GeoPolygon2 polygon, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
polygonGeoPolygon2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoPolygonArc2, out GeoPoint2[])
Tries to find where this face meets a loop that may curve.
public bool TryIntersectWith(GeoPolygonArc2 loop, out GeoPoint2[] intersections)
Parameters
loopGeoPolygonArc2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoPolygonArc2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a loop that may curve, within a tolerance.
public bool TryIntersectWith(GeoPolygonArc2 loop, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
loopGeoPolygonArc2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoPolyline2, out GeoPoint2[])
Tries to find where this face meets a chain.
public bool TryIntersectWith(GeoPolyline2 polyline, out GeoPoint2[] intersections)
Parameters
polylineGeoPolyline2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoPolyline2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a chain, within a tolerance.
public bool TryIntersectWith(GeoPolyline2 polyline, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoPolylineArc2, out GeoPoint2[])
Tries to find where this face meets a chain that may curve.
public bool TryIntersectWith(GeoPolylineArc2 chain, out GeoPoint2[] intersections)
Parameters
chainGeoPolylineArc2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoPolylineArc2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a chain that may curve, within a tolerance.
public bool TryIntersectWith(GeoPolylineArc2 chain, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
chainGeoPolylineArc2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoRectangle2, out GeoPoint2[])
Tries to find where this face meets a rectangle.
public bool TryIntersectWith(GeoRectangle2 rect, out GeoPoint2[] intersections)
Parameters
rectGeoRectangle2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoRectangle2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a rectangle, within a tolerance.
public bool TryIntersectWith(GeoRectangle2 rect, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
rectGeoRectangle2The shape to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoTriangle2, out GeoPoint2[])
Tries to find where this face meets the edges of a triangle, using the default tolerance.
public bool TryIntersectWith(GeoTriangle2 triangle, out GeoPoint2[] intersections)
Parameters
triangleGeoTriangle2The triangle to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoTriangle2, out GeoPoint2[], Tolerance)
Tries to find where this face meets the edges of a triangle, within a tolerance.
public bool TryIntersectWith(GeoTriangle2 triangle, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle2The triangle to test against.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoFace2, out GeoPoint2[])
Tries to find where the boundary of this face crosses the boundary of another.
public bool TryIntersectWith(GeoFace2 other, out GeoPoint2[] intersections)
Parameters
Returns
Remarks
This is GetIntersections(GeoFace2, Tolerance) read a second way, the list and whether it is empty, as for every other shape. The square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle meets the square 20 by 20 about (30, 50) at two points; a face lying in its hole without touching the rim meets it nowhere, and the answer is false.
Exceptions
- ArgumentNullException
Thrown when the other face is null.
TryIntersectWith(GeoFace2, out GeoPoint2[], Tolerance)
Tries to find where the boundary of this face crosses the boundary of another, within a tolerance.
public bool TryIntersectWith(GeoFace2 other, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
otherGeoFace2The other face.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when the boundaries meet anywhere; otherwise, false.
Remarks
The points are those of GetIntersections(GeoFace2, Tolerance), in the same order. The square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle meets the square 20 by 20 about (30, 50) at two points.
Exceptions
- ArgumentNullException
Thrown when the other face is null.
TryIntersectWith(GeoRay2, out GeoPoint2[])
Tries to find where this face meets a ray.
public bool TryIntersectWith(GeoRay2 ray, out GeoPoint2[] intersections)
Parameters
Returns
TryIntersectWith(GeoRay2, out GeoPoint2[], Tolerance)
Tries to find where this face meets a ray, within a tolerance.
public bool TryIntersectWith(GeoRay2 ray, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
rayGeoRay2The ray.
intersectionsGeoPoint2[]The places they meet when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
- bool
true when they meet anywhere; otherwise, false.
TryIntersectWith(GeoXLine2, out GeoPoint2[])
Tries to find where this face crosses an infinite line, using the default tolerance.
public bool TryIntersectWith(GeoXLine2 xline, out GeoPoint2[] intersections)
Parameters
xlineGeoXLine2The infinite line.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoXLine2, out GeoPoint2[], Tolerance)
Tries to find where this face crosses an infinite line, within a tolerance.
public bool TryIntersectWith(GeoXLine2 xline, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
xlineGeoXLine2The infinite line.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoSpline2, out GeoPoint2[])
Tries to find where this face crosses a spline, using the default tolerance.
public bool TryIntersectWith(GeoSpline2 spline, out GeoPoint2[] intersections)
Parameters
splineGeoSpline2The spline.
intersectionsGeoPoint2[]The points when the method returns true; empty otherwise.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
TryIntersectWith(GeoSpline2, out GeoPoint2[], Tolerance)
Tries to find where this face crosses a spline, within a tolerance.
public bool TryIntersectWith(GeoSpline2 spline, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
splineGeoSpline2The spline.
intersectionsGeoPoint2[]The points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.