Method GetIntersections
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetIntersections(GeoAabb3)
Gets every point where this ray crosses the surface of an axis-aligned box, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoAabb3 box)
Parameters
boxGeoAabb3
Returns
GetIntersections(GeoAabb3, Tolerance)
Gets every point where this ray crosses the surface of an axis-aligned box, within a tolerance.
public GeoPoint3[] GetIntersections(GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoObb3)
Gets every point where this ray crosses the surface of an oriented box, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoObb3 box)
Parameters
boxGeoObb3
Returns
GetIntersections(GeoObb3, Tolerance)
Gets every point where this ray crosses the surface of an oriented box, within a tolerance.
public GeoPoint3[] GetIntersections(GeoObb3 box, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoSolid3)
Gets every point where this ray crosses the surface of a solid, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSolid3 solid)
Parameters
solidGeoSolid3
Returns
GetIntersections(GeoSolid3, Tolerance)
Gets every point where this ray crosses the surface of a solid, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoArc3)
Gets every point where an arc crosses this ray, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
GetIntersections(GeoArc3, Tolerance)
Gets every point where an arc crosses this ray, within a tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoCircle3)
Gets every point where a circle crosses this ray, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
GetIntersections(GeoCircle3, Tolerance)
Gets every point where a circle crosses this ray, within a tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3toleranceTolerance
Returns
GetIntersections(GeoLine3)
Gets where this ray crosses a segment, as a list.
public GeoPoint3[] GetIntersections(GeoLine3 line)
Parameters
lineGeoLine3
Returns
Remarks
Two straight pieces meet at one place, so the list is one long or empty. It is a list because a GeoEdge3 has to be able to ask the same question of a segment and of a bend.
GetIntersections(GeoLine3, Tolerance)
Gets where this ray crosses a segment, as a list, within a tolerance.
public GeoPoint3[] GetIntersections(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoEdge3)
Gets every point where this ray crosses an edge: the same points, in the same order, as GetIntersections(GeoRay3).
public GeoPoint3[] GetIntersections(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
GetIntersections(GeoEdge3, Tolerance)
Gets every point where this ray crosses an edge, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).
public GeoPoint3[] GetIntersections(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoPolygonArc3)
Gets every point where this ray crosses a curved loop: the same points, in the same order, as GetIntersections(GeoRay3).
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoPolygonArc3, Tolerance)
Gets every point where this ray crosses a curved loop, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoPolyline3)
Gets every point where this ray crosses a straight chain: the same points, in the same order, as GetIntersections(GeoRay3).
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolyline3, Tolerance)
Gets every point where this ray crosses a straight chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolylineArc3)
Gets every point where this ray crosses a curved chain: the same points, in the same order, as GetIntersections(GeoRay3).
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolylineArc3, Tolerance)
Gets every point where this ray crosses a curved chain, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPlane3)
Gets where this ray crosses a plane, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoPlane3).
public GeoPoint3[] GetIntersections(GeoPlane3 plane)
Parameters
planeGeoPlane3The plane.
Returns
Remarks
A ray from (0, 0, 10) pointing straight down crosses the floor plane at the origin; one lying in the floor touches it everywhere and crosses it nowhere.
GetIntersections(GeoPlane3, Tolerance)
Gets where this ray crosses a plane, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoPlane3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
Remarks
A ray from (0, 0, 10) pointing straight down crosses the floor plane at the origin; one lying in the floor touches it everywhere and crosses it nowhere.
GetIntersections(GeoRay3)
Gets where this ray and another cross, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoRay3).
public GeoPoint3[] GetIntersections(GeoRay3 other)
Parameters
otherGeoRay3The ray.
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.
GetIntersections(GeoRay3, Tolerance)
Gets where this ray and another cross, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoRay3, Tolerance).
public GeoPoint3[] GetIntersections(GeoRay3 other, Tolerance tolerance)
Parameters
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.
GetIntersections(GeoTriangle3)
Gets where this ray crosses a triangle, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoTriangle3).
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3The triangle.
Returns
Remarks
A ray from (20, 20, 10) pointing straight down crosses the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) at (20, 20, 0).
GetIntersections(GeoTriangle3, Tolerance)
Gets where this ray crosses a triangle, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoTriangle3, Tolerance).
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3The triangle.
toleranceToleranceThe tolerance.
Returns
Remarks
A ray from (20, 20, 10) pointing straight down crosses the triangle with corners (0, 0, 0), (100, 0, 0) and (0, 100, 0) at (20, 20, 0).
GetIntersections(GeoPolygon3)
Gets where this ray crosses a polygon, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoPolygon3).
public GeoPoint3[] GetIntersections(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3The polygon.
Returns
Remarks
A ray from (20, 20, 10) pointing straight down crosses the square 100 by 100 in the floor with a corner at the origin at (20, 20, 0).
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoPolygon3, Tolerance)
Gets where this ray crosses a polygon, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoPolygon3, Tolerance).
public GeoPoint3[] GetIntersections(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3The polygon.
toleranceToleranceThe tolerance.
Returns
Remarks
A ray from (20, 20, 10) pointing straight down crosses the square 100 by 100 in the floor with a corner at the origin at (20, 20, 0).
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoFace3)
Gets where this ray crosses the material of a face, as a list: the same points, in the same order, as GetIntersections(GeoRay3, GeoFace3).
public GeoPoint3[] GetIntersections(GeoFace3 face)
Parameters
faceGeoFace3The face, read by its material.
Returns
Remarks
A ray from (50, 50, 10) pointing straight down passes through the hole 40 by 40 in the middle of the square 100 by 100 in the floor and crosses nothing; from (20, 20, 10) it crosses the material at (20, 20, 0).
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoFace3, Tolerance)
Gets where this ray crosses the material of a face, as a list, within a tolerance: the same points, in the same order, as GetIntersections(GeoRay3, GeoFace3, Tolerance).
public GeoPoint3[] GetIntersections(GeoFace3 face, Tolerance tolerance)
Parameters
Returns
Remarks
A ray from (50, 50, 10) pointing straight down passes through the hole 40 by 40 in the middle of the square 100 by 100 in the floor and crosses nothing; from (20, 20, 10) it crosses the material at (20, 20, 0).
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoSphere3)
Gets the points where this ray crosses the surface of a ball, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSphere3 sphere)
Parameters
sphereGeoSphere3
Returns
GetIntersections(GeoSphere3, Tolerance)
Gets the points where this ray crosses the surface of a ball, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
GetIntersections(GeoSpline3)
Gets the points where this ray meets a spline, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoSpline3 spline)
Parameters
splineGeoSpline3
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetIntersections(GeoSpline3, Tolerance)
Gets the points where this ray meets a spline, within a tolerance.
public GeoPoint3[] GetIntersections(GeoSpline3 spline, Tolerance tolerance)
Parameters
splineGeoSpline3toleranceTolerance
Returns
- GeoPoint3[]
The same points the spline gives, in order along the spline from its start.
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetIntersections(GeoXLine3)
Gets the point where this ray crosses an infinite line, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
GetIntersections(GeoXLine3, Tolerance)
Gets the point where this ray crosses an infinite line, within a tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline, Tolerance tolerance)
Parameters
Returns
Remarks
The point is placed on this ray, never behind its origin.