Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

TryIntersectWith(GeoLine2, GeoLine2, out GeoPoint2)

Tries to calculate the intersection point between two line segments using default tolerance.

public static bool TryIntersectWith(GeoLine2 line1, GeoLine2 line2, out GeoPoint2 intersection)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

intersection GeoPoint2

The resulting intersection point if successful.

Returns

bool

true if the line segments intersect; otherwise, false.

TryIntersectWith(GeoLine2, GeoLine2, out GeoPoint2, Tolerance)

Tries to calculate the intersection point between two line segments within tolerance.

public static bool TryIntersectWith(GeoLine2 line1, GeoLine2 line2, out GeoPoint2 intersection, Tolerance tolerance)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

intersection GeoPoint2

The resulting intersection point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

true if the line segments intersect within tolerance; otherwise, false.

TryIntersectWith(GeoLine2, GeoLine2, LineExtension, out GeoPoint2)

Tries to calculate the intersection point between two line segments, reading either or both as the infinite line carrying it, using default tolerance.

public static bool TryIntersectWith(GeoLine2 line1, GeoLine2 line2, LineExtension extension, out GeoPoint2 intersection)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

extension LineExtension

Which of the two may be reached past its endpoints.

intersection GeoPoint2

The resulting intersection point if successful.

Returns

bool

true if the lines meet within the reach allowed; otherwise, false.

TryIntersectWith(GeoLine2, GeoLine2, LineExtension, out GeoPoint2, Tolerance)

Tries to calculate the intersection point between two line segments, reading either or both as the infinite line carrying it, within tolerance.

public static bool TryIntersectWith(GeoLine2 line1, GeoLine2 line2, LineExtension extension, out GeoPoint2 intersection, Tolerance tolerance)

Parameters

line1 GeoLine2

The first line segment.

line2 GeoLine2

The second line segment.

extension LineExtension

Which of the two may be reached past its endpoints.

intersection GeoPoint2

The resulting intersection point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

true if the lines meet within the reach allowed; otherwise, false.

Remarks

This is AutoCAD's IntersectWith with its Intersect option: Both finds where two axes would cross however short they are drawn, First where the first would reach the second if it were extended. Parallel lines are refused whatever the extension, as they are without one: they either never meet or share a whole stretch, and neither is a single point. The point returned lies on every segment that was not extended.

Exceptions

ArgumentOutOfRangeException

Thrown when the extension is not a defined value.

TryIntersectWith(GeoCircle2, GeoLine2, out GeoPoint2[])

Tries to calculate the intersection points between a circle and a line segment using default tolerance.

public static bool TryIntersectWith(GeoCircle2 circle, GeoLine2 line, out GeoPoint2[] intersections)

Parameters

circle GeoCircle2
line GeoLine2
intersections GeoPoint2[]

Returns

bool

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

Tries to calculate the intersection points between a circle and a line segment within tolerance.

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

Parameters

circle GeoCircle2
line GeoLine2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoCircle2, GeoCircle2, out GeoPoint2[])

Tries to calculate the intersection points between two circles using default tolerance.

public static bool TryIntersectWith(GeoCircle2 c1, GeoCircle2 c2, out GeoPoint2[] intersections)

Parameters

c1 GeoCircle2
c2 GeoCircle2
intersections GeoPoint2[]

Returns

bool

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

Tries to calculate the intersection points between two circles within tolerance.

public static bool TryIntersectWith(GeoCircle2 c1, GeoCircle2 c2, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

c1 GeoCircle2
c2 GeoCircle2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoPolyline2, GeoLine2, out GeoPoint2[])

Tries to calculate all intersection points between a polyline and a line segment using default tolerance.

public static bool TryIntersectWith(GeoPolyline2 polyline, GeoLine2 line, out GeoPoint2[] intersections)

Parameters

polyline GeoPolyline2
line GeoLine2
intersections GeoPoint2[]

Returns

bool

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

Tries to calculate all intersection points between a polyline and a line segment within tolerance.

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

Parameters

polyline GeoPolyline2
line GeoLine2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoPolylineArc2, GeoLine2, out GeoPoint2[])

Tries to find where a chain that may curve meets a straight segment.

public static bool TryIntersectWith(GeoPolylineArc2 chain, GeoLine2 line, out GeoPoint2[] intersections)

Parameters

chain GeoPolylineArc2
line GeoLine2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

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

Tries to find where a chain that may curve meets a straight segment, within a tolerance.

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

Parameters

chain GeoPolylineArc2
line GeoLine2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc2, GeoArc2, out GeoPoint2[])

Tries to find where a chain that may curve meets an arc.

public static bool TryIntersectWith(GeoPolylineArc2 chain, GeoArc2 arc, out GeoPoint2[] intersections)

Parameters

chain GeoPolylineArc2
arc GeoArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

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

Tries to find where a chain that may curve meets an arc, within a tolerance.

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

Parameters

chain GeoPolylineArc2
arc GeoArc2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc2, GeoCircle2, out GeoPoint2[])

Tries to find where a chain that may curve meets a circle.

public static bool TryIntersectWith(GeoPolylineArc2 chain, GeoCircle2 circle, out GeoPoint2[] intersections)

Parameters

chain GeoPolylineArc2
circle GeoCircle2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

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

Tries to find where a chain that may curve meets a circle, within a tolerance.

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

Parameters

chain GeoPolylineArc2
circle GeoCircle2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc2, GeoPolyline2, out GeoPoint2[])

Tries to find where a chain that may curve meets a straight chain.

public static bool TryIntersectWith(GeoPolylineArc2 chain, GeoPolyline2 polyline, out GeoPoint2[] intersections)

Parameters

chain GeoPolylineArc2
polyline GeoPolyline2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

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

Tries to find where a chain that may curve meets a straight chain, within a tolerance.

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

Parameters

chain GeoPolylineArc2
polyline GeoPolyline2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc2, GeoPolygon2, out GeoPoint2[])

Tries to find where a chain that may curve meets a straight loop.

public static bool TryIntersectWith(GeoPolylineArc2 chain, GeoPolygon2 polygon, out GeoPoint2[] intersections)

Parameters

chain GeoPolylineArc2
polygon GeoPolygon2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

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

Tries to find where a chain that may curve meets a straight loop, within a tolerance.

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

Parameters

chain GeoPolylineArc2
polygon GeoPolygon2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc2, GeoPolylineArc2, out GeoPoint2[])

Tries to find where a chain that may curve meets a chain that may curve.

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

Parameters

chain GeoPolylineArc2
other GeoPolylineArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

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

Tries to find where a chain that may curve meets a chain that may curve, within a tolerance.

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

Parameters

chain GeoPolylineArc2
other GeoPolylineArc2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc2, GeoPolygonArc2, out GeoPoint2[])

Tries to find where a chain that may curve meets a loop that may curve.

public static bool TryIntersectWith(GeoPolylineArc2 chain, GeoPolygonArc2 loop, out GeoPoint2[] intersections)

Parameters

chain GeoPolylineArc2
loop GeoPolygonArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

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

Tries to find where a chain that may curve meets a loop that may curve, within a tolerance.

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

Parameters

chain GeoPolylineArc2
loop GeoPolygonArc2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolygonArc2, GeoLine2, out GeoPoint2[])

Tries to find where a loop that may curve meets a straight segment.

public static bool TryIntersectWith(GeoPolygonArc2 loop, GeoLine2 line, out GeoPoint2[] intersections)

Parameters

loop GeoPolygonArc2
line GeoLine2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

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

Tries to find where a loop that may curve meets a straight segment, within a tolerance.

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

Parameters

loop GeoPolygonArc2
line GeoLine2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolygonArc2, GeoArc2, out GeoPoint2[])

Tries to find where a loop that may curve meets an arc.

public static bool TryIntersectWith(GeoPolygonArc2 loop, GeoArc2 arc, out GeoPoint2[] intersections)

Parameters

loop GeoPolygonArc2
arc GeoArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

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

Tries to find where a loop that may curve meets an arc, within a tolerance.

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

Parameters

loop GeoPolygonArc2
arc GeoArc2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolygonArc2, GeoCircle2, out GeoPoint2[])

Tries to find where a loop that may curve meets a circle.

public static bool TryIntersectWith(GeoPolygonArc2 loop, GeoCircle2 circle, out GeoPoint2[] intersections)

Parameters

loop GeoPolygonArc2
circle GeoCircle2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

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

Tries to find where a loop that may curve meets a circle, within a tolerance.

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

Parameters

loop GeoPolygonArc2
circle GeoCircle2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolygonArc2, GeoPolyline2, out GeoPoint2[])

Tries to find where a loop that may curve meets a straight chain.

public static bool TryIntersectWith(GeoPolygonArc2 loop, GeoPolyline2 polyline, out GeoPoint2[] intersections)

Parameters

loop GeoPolygonArc2
polyline GeoPolyline2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

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

Tries to find where a loop that may curve meets a straight chain, within a tolerance.

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

Parameters

loop GeoPolygonArc2
polyline GeoPolyline2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolygonArc2, GeoPolygon2, out GeoPoint2[])

Tries to find where a loop that may curve meets a straight loop.

public static bool TryIntersectWith(GeoPolygonArc2 loop, GeoPolygon2 polygon, out GeoPoint2[] intersections)

Parameters

loop GeoPolygonArc2
polygon GeoPolygon2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

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

Tries to find where a loop that may curve meets a straight loop, within a tolerance.

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

Parameters

loop GeoPolygonArc2
polygon GeoPolygon2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolygonArc2, GeoPolylineArc2, out GeoPoint2[])

Tries to find where a loop that may curve meets a chain that may curve.

public static bool TryIntersectWith(GeoPolygonArc2 loop, GeoPolylineArc2 chain, out GeoPoint2[] intersections)

Parameters

loop GeoPolygonArc2
chain GeoPolylineArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

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

Tries to find where a loop that may curve meets a chain that may curve, within a tolerance.

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

Parameters

loop GeoPolygonArc2
chain GeoPolylineArc2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolygonArc2, GeoPolygonArc2, out GeoPoint2[])

Tries to find where a loop that may curve meets a loop that may curve.

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

Parameters

loop GeoPolygonArc2
other GeoPolygonArc2
intersections GeoPoint2[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

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

Tries to find where a loop that may curve meets a loop that may curve, within a tolerance.

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

Parameters

loop GeoPolygonArc2
other GeoPolygonArc2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

true when they meet anywhere; otherwise, false.

Exceptions

ArgumentNullException

Thrown when the loop is null.