Method GetIntersections
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetIntersections(GeoLine3)
Gets the points where the surface of this ball crosses a segment, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoLine3 line)
Parameters
lineGeoLine3
Returns
GetIntersections(GeoLine3, Tolerance)
Gets the points where the surface of this ball crosses a segment, within a tolerance.
public GeoPoint3[] GetIntersections(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Remarks
The segment from (0, -100, 0) to (0, 100, 0) crosses the surface of the ball of radius 50 about the origin at (0, -50, 0) and (0, 50, 0), in that order. The segment from (-10, 0, 0) to (10, 0, 0) lies wholly inside, collides with the ball and crosses it nowhere; one that ends 0.0005 short of the surface touches it, at its end. A segment no longer than the point tolerance is read as its start where it does not truly cross the surface: at a thousandth, the one from (0, 0, 50.0004) to (0, 0, 49.9995) crosses it at (0, 0, 50), the one from (0, 0, 50.0008) to (0, 0, 50.0002) meets it at its start, and the one from (0, 0, 50.0015) to (0, 0, 50.0006) meets it nowhere.
GetIntersections(GeoRay3)
Gets the points where the surface of this ball crosses a ray, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoRay3 ray)
Parameters
rayGeoRay3
Returns
GetIntersections(GeoRay3, Tolerance)
Gets the points where the surface of this ball crosses a ray, within a tolerance.
public GeoPoint3[] GetIntersections(GeoRay3 ray, Tolerance tolerance)
Parameters
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Remarks
The ray from (100, 0, 0) along -X crosses the surface of the ball of radius 50 about the origin at (50, 0, 0) and (-50, 0, 0), in that order; the ray from (10, 0, 0) along X starts inside and crosses once, at (50, 0, 0).
GetIntersections(GeoXLine3)
Gets the points where the surface of this ball crosses an infinite line, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
GetIntersections(GeoXLine3, Tolerance)
Gets the points where the surface of this ball crosses an infinite line, within a tolerance.
public GeoPoint3[] GetIntersections(GeoXLine3 xline, Tolerance tolerance)
Parameters
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Remarks
The line through (0, 30, 0) along X crosses the surface of the ball of radius 50 about the origin at (-40, 30, 0) and (40, 30, 0), in order along the line; the line through (0, 50, 0) along X grazes it and gives the one point (0, 50, 0).
GetIntersections(GeoArc3)
Gets the points where the surface of this ball crosses an arc, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
GetIntersections(GeoArc3, Tolerance)
Gets the points where the surface of this ball crosses an arc, within a tolerance.
public GeoPoint3[] GetIntersections(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Remarks
The half of the circle of radius 30 about (50, 0, 0) in the floor that runs from (80, 0, 0) over (50, 30, 0) to (20, 0, 0) crosses the surface of the ball of radius 50 about the origin once, at (41, 28.62, 0).
GetIntersections(GeoCircle3)
Gets the points where the surface of this ball crosses a circle, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
GetIntersections(GeoCircle3, Tolerance)
Gets the points where the surface of this ball crosses a circle, within a tolerance.
public GeoPoint3[] GetIntersections(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3toleranceTolerance
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Remarks
The crossings are those of the rim: the circle of radius 30 about (50, 0, 0) in the floor crosses the surface of the ball of radius 50 about the origin at (41, 28.62, 0) and (41, -28.62, 0), and the circle of radius 30 about the origin lies inside the ball, collides with it and crosses it nowhere.
GetIntersections(GeoEllipse3)
Gets the points where the surface of this ball crosses an ellipse, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoEllipse3 ellipse)
Parameters
ellipseGeoEllipse3
Returns
GetIntersections(GeoEllipse3, Tolerance)
Gets the points where the surface of this ball crosses an ellipse, within a tolerance.
public GeoPoint3[] GetIntersections(GeoEllipse3 ellipse, Tolerance tolerance)
Parameters
ellipseGeoEllipse3toleranceTolerance
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Remarks
The ellipse of radii 100 and 40 about the origin in the floor, its long axis along X, crosses the surface of the ball of radius 50 about the origin at the four points (+/-32.73, +/-37.80, 0).
GetIntersections(GeoEdge3)
Gets the points where the surface of this ball crosses an edge, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
GetIntersections(GeoEdge3, Tolerance)
Gets the points where the surface of this ball crosses an edge, within a tolerance.
public GeoPoint3[] GetIntersections(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
GetIntersections(GeoPolyline3)
Gets the points where the surface of this ball crosses a polyline, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetIntersections(GeoPolyline3, Tolerance)
Gets the points where the surface of this ball crosses a polyline, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetIntersections(GeoPolygon3)
Gets the points where the surface of this ball crosses a polygon, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoPolygon3, Tolerance)
Gets the points where the surface of this ball crosses a polygon, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3toleranceTolerance
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Remarks
It is the boundary of the polygon that is crossed: the square from (-100, -100, 0) to (100, 100, 0) holds the ball in its middle and its sides are all further than 50 away, so it collides with the ball and crosses its surface nowhere; the rectangle from (-30, -100, 0) to (30, 100, 0) crosses it at (30, -40, 0), (30, 40, 0), (-30, 40, 0) and (-30, -40, 0), in the order its sides are met.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoPolylineArc3)
Gets the points where the surface of this ball crosses a curved chain, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
GetIntersections(GeoPolylineArc3, Tolerance)
Gets the points where the surface of this ball crosses a curved chain, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc3toleranceTolerance
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
GetIntersections(GeoPolygonArc3)
Gets the points where the surface of this ball crosses a curved loop, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.
GetIntersections(GeoPolygonArc3, Tolerance)
Gets the points where the surface of this ball crosses a curved loop, within a tolerance.
public GeoPoint3[] GetIntersections(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3toleranceTolerance
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.
GetIntersections(GeoTriangle3)
Gets the points where the surface of this ball crosses a triangle, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3
Returns
GetIntersections(GeoTriangle3, Tolerance)
Gets the points where the surface of this ball crosses a triangle, within a tolerance.
public GeoPoint3[] GetIntersections(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3toleranceTolerance
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
GetIntersections(GeoFace3)
Gets the points where the surface of this ball crosses a face, using the default tolerance.
public GeoPoint3[] GetIntersections(GeoFace3 face)
Parameters
faceGeoFace3
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoFace3, Tolerance)
Gets the points where the surface of this ball crosses a face, within a tolerance.
public GeoPoint3[] GetIntersections(GeoFace3 face, Tolerance tolerance)
Parameters
Returns
- GeoPoint3[]
The crossings, none where they do not meet or where the shape lies inside the ball.
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoSpline3)
Gets the points where this ball 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 ball 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.