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
line1GeoLine2The first line segment.
line2GeoLine2The second line segment.
intersectionGeoPoint2The 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
line1GeoLine2The first line segment.
line2GeoLine2The second line segment.
intersectionGeoPoint2The resulting intersection point if successful.
toleranceToleranceThe 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
line1GeoLine2The first line segment.
line2GeoLine2The second line segment.
extensionLineExtensionWhich of the two may be reached past its endpoints.
intersectionGeoPoint2The 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
line1GeoLine2The first line segment.
line2GeoLine2The second line segment.
extensionLineExtensionWhich of the two may be reached past its endpoints.
intersectionGeoPoint2The resulting intersection point if successful.
toleranceToleranceThe 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
circleGeoCircle2lineGeoLine2intersectionsGeoPoint2[]
Returns
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
circleGeoCircle2lineGeoLine2intersectionsGeoPoint2[]toleranceTolerance
Returns
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
c1GeoCircle2c2GeoCircle2intersectionsGeoPoint2[]
Returns
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
c1GeoCircle2c2GeoCircle2intersectionsGeoPoint2[]toleranceTolerance
Returns
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
polylineGeoPolyline2lineGeoLine2intersectionsGeoPoint2[]
Returns
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
polylineGeoPolyline2lineGeoLine2intersectionsGeoPoint2[]toleranceTolerance
Returns
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
chainGeoPolylineArc2lineGeoLine2intersectionsGeoPoint2[]
Returns
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
chainGeoPolylineArc2lineGeoLine2intersectionsGeoPoint2[]toleranceTolerance
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
chainGeoPolylineArc2arcGeoArc2intersectionsGeoPoint2[]
Returns
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
chainGeoPolylineArc2arcGeoArc2intersectionsGeoPoint2[]toleranceTolerance
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
chainGeoPolylineArc2circleGeoCircle2intersectionsGeoPoint2[]
Returns
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
chainGeoPolylineArc2circleGeoCircle2intersectionsGeoPoint2[]toleranceTolerance
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
chainGeoPolylineArc2polylineGeoPolyline2intersectionsGeoPoint2[]
Returns
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
chainGeoPolylineArc2polylineGeoPolyline2intersectionsGeoPoint2[]toleranceTolerance
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
chainGeoPolylineArc2polygonGeoPolygon2intersectionsGeoPoint2[]
Returns
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
chainGeoPolylineArc2polygonGeoPolygon2intersectionsGeoPoint2[]toleranceTolerance
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
chainGeoPolylineArc2otherGeoPolylineArc2intersectionsGeoPoint2[]
Returns
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
chainGeoPolylineArc2otherGeoPolylineArc2intersectionsGeoPoint2[]toleranceTolerance
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
chainGeoPolylineArc2loopGeoPolygonArc2intersectionsGeoPoint2[]
Returns
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
chainGeoPolylineArc2loopGeoPolygonArc2intersectionsGeoPoint2[]toleranceTolerance
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
loopGeoPolygonArc2lineGeoLine2intersectionsGeoPoint2[]
Returns
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
loopGeoPolygonArc2lineGeoLine2intersectionsGeoPoint2[]toleranceTolerance
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
loopGeoPolygonArc2arcGeoArc2intersectionsGeoPoint2[]
Returns
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
loopGeoPolygonArc2arcGeoArc2intersectionsGeoPoint2[]toleranceTolerance
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
loopGeoPolygonArc2circleGeoCircle2intersectionsGeoPoint2[]
Returns
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
loopGeoPolygonArc2circleGeoCircle2intersectionsGeoPoint2[]toleranceTolerance
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
loopGeoPolygonArc2polylineGeoPolyline2intersectionsGeoPoint2[]
Returns
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
loopGeoPolygonArc2polylineGeoPolyline2intersectionsGeoPoint2[]toleranceTolerance
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
loopGeoPolygonArc2polygonGeoPolygon2intersectionsGeoPoint2[]
Returns
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
loopGeoPolygonArc2polygonGeoPolygon2intersectionsGeoPoint2[]toleranceTolerance
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
loopGeoPolygonArc2chainGeoPolylineArc2intersectionsGeoPoint2[]
Returns
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
loopGeoPolygonArc2chainGeoPolylineArc2intersectionsGeoPoint2[]toleranceTolerance
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
loopGeoPolygonArc2otherGeoPolygonArc2intersectionsGeoPoint2[]
Returns
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
loopGeoPolygonArc2otherGeoPolygonArc2intersectionsGeoPoint2[]toleranceTolerance
Returns
- bool
true when they meet anywhere; otherwise, false.
Exceptions
- ArgumentNullException
Thrown when the loop is null.