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
Returns
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
planeGeoPlane3The plane.
intersectionGeoPoint3The crossing point if successful.
toleranceToleranceThe tolerance.
Returns
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
triangleGeoTriangle3The triangle.
intersectionGeoPoint3The crossing point if successful.
Returns
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
triangleGeoTriangle3The triangle.
intersectionGeoPoint3The crossing point if successful.
toleranceToleranceThe tolerance.
Returns
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
polygonGeoPolygon3The polygon.
intersectionGeoPoint3The crossing point if successful.
Returns
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
polygonGeoPolygon3The polygon.
intersectionGeoPoint3The crossing point if successful.
toleranceToleranceThe tolerance.
Returns
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
Returns
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
faceGeoFace3The face.
intersectionGeoPoint3The crossing point if successful.
toleranceToleranceThe tolerance.
Returns
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
lineGeoLine3The line segment.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise.
Returns
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
lineGeoLine3The line segment.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
rayGeoRay3The ray.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise.
Returns
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
rayGeoRay3The ray.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise, placed on the ray, never behind its origin.
toleranceToleranceThe tolerance.
Returns
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
otherGeoXLine3The other line.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise.
Returns
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
otherGeoXLine3The other line.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
arcGeoArc3The arc.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
arcGeoArc3The arc.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
circleGeoCircle3The circle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
circleGeoCircle3The circle.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
ellipseGeoEllipse3The ellipse.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
ellipseGeoEllipse3The ellipse.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
edgeGeoEdge3The edge.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
edgeGeoEdge3The edge.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
polylineGeoPolyline3The polyline.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
polylineGeoPolyline3The polyline.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
chainGeoPolylineArc3The curved chain.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
chainGeoPolylineArc3The curved chain.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
loopGeoPolygonArc3The curved loop.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
loopGeoPolygonArc3The curved loop.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
sphereGeoSphere3The ball.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
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
sphereGeoSphere3The ball.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
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
splineGeoSpline3The spline.
intersectionsGeoPoint3[]The points when the method returns true; empty otherwise.
Returns
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
splineGeoSpline3The spline.
intersectionsGeoPoint3[]The points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.