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.

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.