Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersectWith(GeoLine2, out GeoPoint2)

Tries to find where this infinite line crosses a line segment, using the default tolerance.

public bool TryIntersectWith(GeoLine2 line, out GeoPoint2 intersection)

Parameters

line GeoLine2

The line segment.

intersection GeoPoint2

The crossing point if successful.

Returns

bool

TryIntersectWith(GeoLine2, out GeoPoint2, Tolerance)

Tries to find where this infinite line crosses a line segment, within a tolerance.

public bool TryIntersectWith(GeoLine2 line, out GeoPoint2 intersection, Tolerance tolerance)

Parameters

line GeoLine2

The line segment.

intersection GeoPoint2

The crossing point if successful, placed on the segment.

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoRay2, out GeoPoint2)

Tries to find where this infinite line crosses a ray, using the default tolerance.

public bool TryIntersectWith(GeoRay2 ray, out GeoPoint2 intersection)

Parameters

ray GeoRay2

The ray.

intersection GeoPoint2

The crossing point if successful.

Returns

bool

TryIntersectWith(GeoRay2, out GeoPoint2, Tolerance)

Tries to find where this infinite line crosses a ray, within a tolerance.

public bool TryIntersectWith(GeoRay2 ray, out GeoPoint2 intersection, Tolerance tolerance)

Parameters

ray GeoRay2

The ray.

intersection GeoPoint2

The crossing point if successful, placed on the ray, never behind its origin.

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

A ray parallel to the line, within the angle tolerance, is refused, even where it lies along the line.

TryIntersectWith(GeoXLine2, out GeoPoint2)

Tries to find where this infinite line crosses another infinite line, using the default tolerance.

public bool TryIntersectWith(GeoXLine2 other, out GeoPoint2 intersection)

Parameters

other GeoXLine2

The other line.

intersection GeoPoint2

The crossing point if successful.

Returns

bool

TryIntersectWith(GeoXLine2, out GeoPoint2, Tolerance)

Tries to find where this infinite line crosses another infinite line, within a tolerance.

public bool TryIntersectWith(GeoXLine2 other, out GeoPoint2 intersection, Tolerance tolerance)

Parameters

other GeoXLine2

The other line.

intersection GeoPoint2

The crossing point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

Two lines parallel by angle are refused, as neither has a length to measure a drift over, even where they are the same line. The line through the origin along X and the one through (50, -50) along Y cross at (50, 0). The point is the same to the bit whichever of the two asks.

TryIntersectWith(GeoArc2, out GeoPoint2[])

Tries to find where this infinite line crosses an arc, using the default tolerance.

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

Parameters

arc GeoArc2

The arc.

intersections GeoPoint2[]

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

Returns

bool

TryIntersectWith(GeoArc2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses an arc, within a tolerance.

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

Parameters

arc GeoArc2

The arc.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoCircle2, out GeoPoint2[])

Tries to find where this infinite line crosses a circle, using the default tolerance.

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

Parameters

circle GeoCircle2

The circle.

intersections GeoPoint2[]

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

Returns

bool

TryIntersectWith(GeoCircle2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses a circle, within a tolerance.

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

Parameters

circle GeoCircle2

The circle.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoEllipse2, out GeoPoint2[])

Tries to find where this infinite line crosses an ellipse, using the default tolerance.

public bool TryIntersectWith(GeoEllipse2 ellipse, out GeoPoint2[] intersections)

Parameters

ellipse GeoEllipse2

The ellipse.

intersections GeoPoint2[]

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

Returns

bool

TryIntersectWith(GeoEllipse2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses an ellipse, within a tolerance.

public bool TryIntersectWith(GeoEllipse2 ellipse, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse2

The ellipse.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoPolyline2, out GeoPoint2[])

Tries to find where this infinite line crosses a polyline, using the default tolerance.

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

Parameters

polyline GeoPolyline2

The polyline.

intersections GeoPoint2[]

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

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polyline is null.

TryIntersectWith(GeoPolyline2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses a polyline, within a tolerance.

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

Parameters

polyline GeoPolyline2

The polyline.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polyline is null.

TryIntersectWith(GeoPolylineArc2, out GeoPoint2[])

Tries to find where this infinite line crosses a curved chain, using the default tolerance.

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

Parameters

chain GeoPolylineArc2

The curved chain.

intersections GeoPoint2[]

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

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

TryIntersectWith(GeoPolylineArc2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses a curved chain, within a tolerance.

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

Parameters

chain GeoPolylineArc2

The curved chain.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

TryIntersectWith(GeoPolygonArc2, out GeoPoint2[])

Tries to find where this infinite line crosses a curved loop, using the default tolerance.

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

Parameters

loop GeoPolygonArc2

The curved loop.

intersections GeoPoint2[]

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

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

TryIntersectWith(GeoPolygonArc2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses a curved loop, within a tolerance.

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

Parameters

loop GeoPolygonArc2

The curved loop.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

TryIntersectWith(GeoRectangle2, out GeoPoint2[])

Tries to find where this infinite line crosses a rectangle, using the default tolerance.

public bool TryIntersectWith(GeoRectangle2 rect, out GeoPoint2[] intersections)

Parameters

rect GeoRectangle2

The rectangle.

intersections GeoPoint2[]

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

Returns

bool

TryIntersectWith(GeoRectangle2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses a rectangle, within a tolerance.

public bool TryIntersectWith(GeoRectangle2 rect, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

rect GeoRectangle2

The rectangle.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoTriangle2, out GeoPoint2[])

Tries to find where this infinite line crosses a triangle, using the default tolerance.

public bool TryIntersectWith(GeoTriangle2 triangle, out GeoPoint2[] intersections)

Parameters

triangle GeoTriangle2

The triangle.

intersections GeoPoint2[]

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

Returns

bool

TryIntersectWith(GeoTriangle2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses a triangle, within a tolerance.

public bool TryIntersectWith(GeoTriangle2 triangle, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

triangle GeoTriangle2

The triangle.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoFace2, out GeoPoint2[])

Tries to find where this infinite line crosses a face, using the default tolerance.

public bool TryIntersectWith(GeoFace2 face, out GeoPoint2[] intersections)

Parameters

face GeoFace2

The face.

intersections GeoPoint2[]

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

Returns

bool

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoFace2, out GeoPoint2[], Tolerance)

Tries to find where this infinite line crosses a face, within a tolerance.

public bool TryIntersectWith(GeoFace2 face, out GeoPoint2[] intersections, Tolerance tolerance)

Parameters

face GeoFace2

The face.

intersections GeoPoint2[]

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

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoSpline2, out GeoPoint2[])

Tries to find where this infinite line 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 infinite line 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.