Table of Contents

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

arc GeoArc2
intersections GeoPoint2[]

Returns

bool

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

arc GeoArc2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

circle GeoCircle2
intersections GeoPoint2[]

Returns

bool

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

circle GeoCircle2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

edge GeoEdge2
intersections GeoPoint2[]

Returns

bool

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

edge GeoEdge2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

line GeoLine2
intersections GeoPoint2[]

Returns

bool

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

line GeoLine2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

polygon GeoPolygon2
intersections GeoPoint2[]

Returns

bool

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

polygon GeoPolygon2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

loop GeoPolygonArc2
intersections GeoPoint2[]

Returns

bool

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

loop GeoPolygonArc2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

polyline GeoPolyline2
intersections GeoPoint2[]

Returns

bool

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

polyline GeoPolyline2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

chain GeoPolylineArc2
intersections GeoPoint2[]

Returns

bool

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

chain GeoPolylineArc2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

rect GeoRectangle2
intersections GeoPoint2[]

Returns

bool

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

rect GeoRectangle2

The shape to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

triangle GeoTriangle2

The triangle to test against.

intersections GeoPoint2[]

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

triangle GeoTriangle2

The triangle to test against.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

other GeoFace2
intersections GeoPoint2[]

Returns

bool

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

other GeoFace2

The other face.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

ray GeoRay2
intersections GeoPoint2[]

Returns

bool

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

ray GeoRay2

The ray.

intersections GeoPoint2[]

The places they meet when the method returns true; empty otherwise.

tolerance Tolerance

The 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

xline GeoXLine2

The infinite line.

intersections GeoPoint2[]

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

Returns

bool

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

xline GeoXLine2

The infinite line.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

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

spline GeoSpline2

The spline.

intersections GeoPoint2[]

The points when the method returns true; empty otherwise.

Returns

bool

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

spline GeoSpline2

The spline.

intersections GeoPoint2[]

The points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.