Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersectWith(GeoPlane3, out GeoPoint3)

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

public bool TryIntersectWith(GeoPlane3 plane, out GeoPoint3 intersection)

Parameters

plane GeoPlane3

The plane.

intersection GeoPoint3

The crossing point if successful.

Returns

bool

TryIntersectWith(GeoPlane3, out GeoPoint3, Tolerance)

Tries to find the point where this infinite line crosses a plane, within a tolerance.

public bool TryIntersectWith(GeoPlane3 plane, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

plane GeoPlane3

The plane.

intersection GeoPoint3

The crossing point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

A line crosses a plane at one point where that point can be placed: at a sine of 1E-9 or less a crossing further out than a double can place within the point tolerance is refused (the line through (0, 0, 100) along (1, 0, -1E-11) gives none), and a line lying in the plane, level with it to a trillionth of a radian within the planar tolerance of it, crosses everywhere and names no point. The line through (5, 5, 0.0004) along (1, 0, -0.01) crosses the floor at (5.04, 5, 0).

TryIntersectWith(GeoTriangle3, out GeoPoint3)

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

public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3 intersection)

Parameters

triangle GeoTriangle3

The triangle.

intersection GeoPoint3

The crossing point if successful.

Returns

bool

TryIntersectWith(GeoTriangle3, out GeoPoint3, Tolerance)

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

public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

triangle GeoTriangle3

The triangle.

intersection GeoPoint3

The crossing point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoPolygon3, out GeoPoint3)

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

public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3 intersection)

Parameters

polygon GeoPolygon3

The polygon.

intersection GeoPoint3

The crossing point if successful.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoPolygon3, out GeoPoint3, Tolerance)

Tries to find the point where this infinite line crosses a polygon, within a tolerance.

public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon.

intersection GeoPoint3

The crossing point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polygon is null.

TryIntersectWith(GeoFace3, out GeoPoint3)

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

public bool TryIntersectWith(GeoFace3 face, out GeoPoint3 intersection)

Parameters

face GeoFace3

The face.

intersection GeoPoint3

The crossing point if successful.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoFace3, out GeoPoint3, Tolerance)

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

public bool TryIntersectWith(GeoFace3 face, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

face GeoFace3

The face.

intersection GeoPoint3

The crossing point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the face is null.

TryIntersectWith(GeoLine3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoLine3 line, out GeoPoint3[] intersections)

Parameters

line GeoLine3

The line segment.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoLine3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoLine3 line, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

line GeoLine3

The line segment.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoRay3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoRay3 ray, out GeoPoint3[] intersections)

Parameters

ray GeoRay3

The ray.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoRay3 ray, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

ray GeoRay3

The ray.

intersections GeoPoint3[]

The crossing point when the method returns true; empty otherwise, placed on the ray, never behind its origin.

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoXLine3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoXLine3 other, out GeoPoint3[] intersections)

Parameters

other GeoXLine3

The other line.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoXLine3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoXLine3 other, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

other GeoXLine3

The other line.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

Remarks

Two lines parallel within the angle tolerance give no point, as neither has a length to measure a drift over, even where they are the same line. The point is the same to the bit whichever of the two asks.

TryIntersectWith(GeoArc3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections)

Parameters

arc GeoArc3

The arc.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoCircle3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections)

Parameters

circle GeoCircle3

The circle.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoEllipse3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoEllipse3 ellipse, out GeoPoint3[] intersections)

Parameters

ellipse GeoEllipse3

The ellipse.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoEllipse3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoEllipse3 ellipse, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

ellipse GeoEllipse3

The ellipse.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoEdge3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoEdge3 edge, out GeoPoint3[] intersections)

Parameters

edge GeoEdge3

The edge.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoEdge3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoEdge3 edge, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

edge GeoEdge3

The edge.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoPolyline3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3

The polyline.

intersections GeoPoint3[]

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

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polyline is null.

TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3

The polyline.

intersections GeoPoint3[]

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(GeoPolylineArc3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoPolylineArc3 chain, out GeoPoint3[] intersections)

Parameters

chain GeoPolylineArc3

The curved chain.

intersections GeoPoint3[]

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

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

TryIntersectWith(GeoPolylineArc3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoPolylineArc3 chain, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

chain GeoPolylineArc3

The curved chain.

intersections GeoPoint3[]

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(GeoPolygonArc3, out GeoPoint3[])

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

public bool TryIntersectWith(GeoPolygonArc3 loop, out GeoPoint3[] intersections)

Parameters

loop GeoPolygonArc3

The curved loop.

intersections GeoPoint3[]

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

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

TryIntersectWith(GeoPolygonArc3, out GeoPoint3[], Tolerance)

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

public bool TryIntersectWith(GeoPolygonArc3 loop, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

loop GeoPolygonArc3

The curved loop.

intersections GeoPoint3[]

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(GeoSphere3, out GeoPoint3[])

Tries to find where this infinite line crosses the surface of a ball, using the default tolerance.

public bool TryIntersectWith(GeoSphere3 sphere, out GeoPoint3[] intersections)

Parameters

sphere GeoSphere3

The ball.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoSphere3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line crosses the surface of a ball, within a tolerance.

public bool TryIntersectWith(GeoSphere3 sphere, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

sphere GeoSphere3

The ball.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoSpline3, out GeoPoint3[])

Tries to find where this infinite line meets a spline, using the default tolerance.

public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections)

Parameters

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)

Tries to find where this infinite line meets a spline, within a tolerance.

public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.