Method TryIntersectWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryIntersectWith(GeoPlane3, out GeoPoint3)
Tries to find the point where this ray 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 ray crosses a plane, within a tolerance.
public bool TryIntersectWith(GeoPlane3 plane, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
Returns
TryIntersectWith(GeoTriangle3, out GeoPoint3)
Tries to find the point where this ray crosses a triangle, using the default tolerance.
public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3 intersection)
Parameters
triangleGeoTriangle3intersectionGeoPoint3
Returns
TryIntersectWith(GeoTriangle3, out GeoPoint3, Tolerance)
Tries to find the point where this ray crosses a triangle, within a tolerance: the first point GetIntersections(GeoTriangle3, Tolerance) gives, and false where it gives none.
public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
triangleGeoTriangle3intersectionGeoPoint3toleranceTolerance
Returns
TryIntersectWith(GeoFace3, out GeoPoint3)
Tries to find the point where this ray crosses a face, using the default tolerance.
public bool TryIntersectWith(GeoFace3 face, out GeoPoint3 intersection)
Parameters
Returns
TryIntersectWith(GeoFace3, out GeoPoint3, Tolerance)
Tries to find the point where this ray crosses a face, within a tolerance: the first point GetIntersections(GeoFace3, Tolerance) gives, and false where it gives none.
public bool TryIntersectWith(GeoFace3 face, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
faceGeoFace3The face.
intersectionGeoPoint3The crossing point when the method returns true.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoPolygon3, out GeoPoint3)
Tries to find the point where this ray crosses a polygon, using the default tolerance.
public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3 intersection)
Parameters
polygonGeoPolygon3The polygon.
intersectionGeoPoint3The crossing point when the method returns true.
Returns
TryIntersectWith(GeoPolygon3, out GeoPoint3, Tolerance)
Tries to find the point where this ray crosses a polygon, within a tolerance: the first point GetIntersections(GeoPolygon3, Tolerance) gives, and false where it gives none.
public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3 intersection, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
intersectionGeoPoint3The crossing point when the method returns true.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoArc3, out GeoPoint3[])
Tries to find where an arc crosses this ray, 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 an arc crosses this ray, 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 a circle crosses this ray, 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 a circle crosses this ray, 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(GeoLine3, out GeoPoint3[])
Tries to find where this ray crosses a segment.
public bool TryIntersectWith(GeoLine3 line, out GeoPoint3[] intersections)
Parameters
Returns
TryIntersectWith(GeoLine3, out GeoPoint3[], Tolerance)
Tries to find where this ray crosses a segment, within a tolerance.
public bool TryIntersectWith(GeoLine3 line, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
Returns
TryIntersectWith(GeoEdge3, out GeoPoint3[])
Tries to find where this ray crosses an edge: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).
public bool TryIntersectWith(GeoEdge3 edge, out GeoPoint3[] intersections)
Parameters
Returns
TryIntersectWith(GeoEdge3, out GeoPoint3[], Tolerance)
Tries to find where this ray crosses an edge, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoEdge3 edge, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
Returns
TryIntersectWith(GeoPolygonArc3, out GeoPoint3[])
Tries to find where this ray crosses a curved loop: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPolygonArc3 loop, out GeoPoint3[] intersections)
Parameters
loopGeoPolygonArc3intersectionsGeoPoint3[]
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
TryIntersectWith(GeoPolygonArc3, out GeoPoint3[], Tolerance)
Tries to find where this ray crosses a curved loop, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPolygonArc3 loop, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
loopGeoPolygonArc3intersectionsGeoPoint3[]toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
TryIntersectWith(GeoPolyline3, out GeoPoint3[])
Tries to find where this ray crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections)
Parameters
polylineGeoPolyline3intersectionsGeoPoint3[]
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)
Tries to find where this ray crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline3intersectionsGeoPoint3[]toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolylineArc3, out GeoPoint3[])
Tries to find where this ray crosses a curved chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).
public bool TryIntersectWith(GeoPolylineArc3 chain, out GeoPoint3[] intersections)
Parameters
chainGeoPolylineArc3intersectionsGeoPoint3[]
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolylineArc3, out GeoPoint3[], Tolerance)
Tries to find where this ray crosses a curved chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoPolylineArc3 chain, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
chainGeoPolylineArc3intersectionsGeoPoint3[]toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoRay3, out GeoPoint3[])
Tries to find where this ray and another cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[]).
public bool TryIntersectWith(GeoRay3 other, out GeoPoint3[] intersections)
Parameters
otherGeoRay3The ray.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
Returns
Remarks
A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0); two rays along the X axis from 0 and from 100, facing each other, touch along the stretch between them and name no place.
TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance)
Tries to find where this ray and another cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[], Tolerance).
public bool TryIntersectWith(GeoRay3 other, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
otherGeoRay3The ray.
intersectionsGeoPoint3[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Remarks
A ray from the origin along X and one from (50, -50, 0) along Y cross at (50, 0, 0); two rays along the X axis from 0 and from 100, facing each other, touch along the stretch between them and name no place.
TryIntersectWith(GeoSphere3, out GeoPoint3[])
Tries to find where this ray 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 ray 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 ray 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 ray 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.
TryIntersectWith(GeoXLine3, out GeoPoint3[])
Tries to find where this ray crosses an infinite line, using the default tolerance.
public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3[] intersections)
Parameters
xlineGeoXLine3The infinite line.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoXLine3, out GeoPoint3[], Tolerance)
Tries to find where this ray crosses an infinite line, within a tolerance.
public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3[] intersections, Tolerance tolerance)
Parameters
xlineGeoXLine3The infinite line.
intersectionsGeoPoint3[]The crossing point when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.