Method GetIntersections
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
GetIntersections(GeoArc2)
Gets the points where this ray meets an arc.
public GeoPoint2[] GetIntersections(GeoArc2 arc)
Parameters
arcGeoArc2
Returns
GetIntersections(GeoArc2, Tolerance)
Gets the points where this ray meets an arc, within a tolerance.
public GeoPoint2[] GetIntersections(GeoArc2 arc, Tolerance tolerance)
Parameters
Returns
GetIntersections(GeoPolygonArc2)
Gets the points where this ray meets a curved loop.
public GeoPoint2[] GetIntersections(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoPolygonArc2, Tolerance)
Gets the points where this ray meets a curved loop, within a tolerance.
public GeoPoint2[] GetIntersections(GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
GetIntersections(GeoPolylineArc2)
Gets the points where this ray meets a curved chain.
public GeoPoint2[] GetIntersections(GeoPolylineArc2 chain)
Parameters
chainGeoPolylineArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoPolylineArc2, Tolerance)
Gets the points where this ray meets a curved chain, within a tolerance.
public GeoPoint2[] GetIntersections(GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
GetIntersections(GeoFace2)
Gets every point where this ray crosses the boundary of a face, using the default tolerance.
public GeoPoint2[] GetIntersections(GeoFace2 face)
Parameters
faceGeoFace2
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoFace2, Tolerance)
Gets every point where this ray crosses the boundary of a face, within a tolerance.
public GeoPoint2[] GetIntersections(GeoFace2 face, Tolerance tolerance)
Parameters
Returns
Remarks
The rim of every hole is boundary too: over the square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle, the ray from (-50, 50) along X crosses at four points: (0, 50) and (100, 50) on the outline, (30, 50) and (70, 50) on the rim of the hole.
Exceptions
- ArgumentNullException
Thrown when the face is null.
GetIntersections(GeoRectangle2)
Gets all intersection points with a rectangle using default tolerance.
public GeoPoint2[] GetIntersections(GeoRectangle2 rect)
Parameters
rectGeoRectangle2
Returns
GetIntersections(GeoRectangle2, Tolerance)
Gets all intersection points with a rectangle within tolerance.
public GeoPoint2[] GetIntersections(GeoRectangle2 rect, Tolerance tolerance)
Parameters
rectGeoRectangle2toleranceTolerance
Returns
GetIntersections(GeoPolygon2)
Gets all intersection points with a polygon using default tolerance.
public GeoPoint2[] GetIntersections(GeoPolygon2 poly)
Parameters
polyGeoPolygon2
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoPolygon2, Tolerance)
Gets all intersection points with a polygon within tolerance.
public GeoPoint2[] GetIntersections(GeoPolygon2 poly, Tolerance tolerance)
Parameters
polyGeoPolygon2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
GetIntersections(GeoCircle2)
Gets all intersection points with a circle using default tolerance.
public GeoPoint2[] GetIntersections(GeoCircle2 circle)
Parameters
circleGeoCircle2
Returns
GetIntersections(GeoCircle2, Tolerance)
Gets all intersection points with a circle within tolerance.
public GeoPoint2[] GetIntersections(GeoCircle2 circle, Tolerance tolerance)
Parameters
circleGeoCircle2toleranceTolerance
Returns
Remarks
The ray from (-100, 0) along X crosses the circle of radius 50 round the origin at (-50, 0) and (50, 0); the ray from the centre crosses it once, at (50, 0).
GetIntersections(GeoPolyline2)
Gets all intersection points with a polyline using default tolerance.
public GeoPoint2[] GetIntersections(GeoPolyline2 polyline)
Parameters
polylineGeoPolyline2
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetIntersections(GeoPolyline2, Tolerance)
Gets all intersection points with a polyline within tolerance.
public GeoPoint2[] GetIntersections(GeoPolyline2 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
GetIntersections(GeoEdge2)
Gets every point where this ray crosses an edge.
public GeoPoint2[] GetIntersections(GeoEdge2 edge)
Parameters
edgeGeoEdge2
Returns
GetIntersections(GeoEdge2, Tolerance)
Gets every point where this ray crosses an edge, within a tolerance.
public GeoPoint2[] GetIntersections(GeoEdge2 edge, Tolerance tolerance)
Parameters
Returns
Remarks
A straight edge meets the ray at a single point rather than at a list of them, so that answer is wrapped to match the curved case, as GetIntersections(GeoEdge2, Tolerance) does.
GetIntersections(GeoTriangle2)
Gets every point where this ray meets the edges of a triangle, using the default tolerance.
public GeoPoint2[] GetIntersections(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2
Returns
GetIntersections(GeoTriangle2, Tolerance)
Gets every point where this ray meets the edges of a triangle, within a tolerance.
public GeoPoint2[] GetIntersections(GeoTriangle2 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle2toleranceTolerance
Returns
GetIntersections(GeoSpline2)
Gets the points where this ray crosses a spline, using the default tolerance.
public GeoPoint2[] GetIntersections(GeoSpline2 spline)
Parameters
splineGeoSpline2
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
GetIntersections(GeoSpline2, Tolerance)
Gets the points where this ray crosses a spline, within a tolerance.
public GeoPoint2[] GetIntersections(GeoSpline2 spline, Tolerance tolerance)
Parameters
splineGeoSpline2toleranceTolerance
Returns
- GeoPoint2[]
The same points the spline gives, in order along the spline from its start.
Exceptions
- ArgumentNullException
Thrown when the spline is null.