Method TryIntersectWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
TryIntersectWith(GeoLine2, out GeoPoint2)
Tries to find where this ray crosses a line segment, using the default tolerance.
public bool TryIntersectWith(GeoLine2 line, out GeoPoint2 intersection)
Parameters
Returns
TryIntersectWith(GeoLine2, out GeoPoint2, Tolerance)
Tries to find where this ray crosses a line segment, within a tolerance.
public bool TryIntersectWith(GeoLine2 line, out GeoPoint2 intersection, Tolerance tolerance)
Parameters
lineGeoLine2The line segment.
intersectionGeoPoint2The crossing point if successful, placed on this ray, never behind its origin.
toleranceToleranceThe tolerance.
Returns
Remarks
A segment parallel to the ray is refused, as two parallel segments are, even where it lies along the ray.
TryIntersectWith(GeoRay2, out GeoPoint2)
Tries to find where this ray crosses another ray, using the default tolerance.
public bool TryIntersectWith(GeoRay2 other, out GeoPoint2 intersection)
Parameters
Returns
TryIntersectWith(GeoRay2, out GeoPoint2, Tolerance)
Tries to find where this ray crosses another ray, within a tolerance.
public bool TryIntersectWith(GeoRay2 other, out GeoPoint2 intersection, Tolerance tolerance)
Parameters
otherGeoRay2The other ray.
intersectionGeoPoint2The crossing point if successful, placed on this ray.
toleranceToleranceThe tolerance.
Returns
Remarks
Two rays parallel by angle are refused, as neither has a length to measure a drift over. The ray from the origin along X and the one from (50, -50) along Y cross at (50, 0); the one from (50, 50) along Y does not.
TryIntersectWith(GeoArc2, out GeoPoint2[])
Tries to find where this ray crosses an arc, using the default tolerance.
public bool TryIntersectWith(GeoArc2 arc, out GeoPoint2[] intersections)
Parameters
arcGeoArc2The arc.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoArc2, out GeoPoint2[], Tolerance)
Tries to find where this ray crosses an arc, within a tolerance.
public bool TryIntersectWith(GeoArc2 arc, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
arcGeoArc2The arc.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoCircle2, out GeoPoint2[])
Tries to find where this ray crosses a circle, using the default tolerance.
public bool TryIntersectWith(GeoCircle2 circle, out GeoPoint2[] intersections)
Parameters
circleGeoCircle2The circle.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
Returns
TryIntersectWith(GeoCircle2, out GeoPoint2[], Tolerance)
Tries to find where this ray crosses a circle, within a tolerance.
public bool TryIntersectWith(GeoCircle2 circle, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
circleGeoCircle2The circle.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoPolygonArc2, out GeoPoint2[])
Tries to find where this ray crosses a curved loop, using the default tolerance.
public bool TryIntersectWith(GeoPolygonArc2 loop, out GeoPoint2[] intersections)
Parameters
loopGeoPolygonArc2The curved loop.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
TryIntersectWith(GeoPolygonArc2, out GeoPoint2[], Tolerance)
Tries to find where this ray crosses a curved loop, within a tolerance.
public bool TryIntersectWith(GeoPolygonArc2 loop, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
loopGeoPolygonArc2The curved loop.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
TryIntersectWith(GeoPolyline2, out GeoPoint2[])
Tries to find where this ray crosses a polyline, using the default tolerance.
public bool TryIntersectWith(GeoPolyline2 polyline, out GeoPoint2[] intersections)
Parameters
polylineGeoPolyline2The polyline.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
TryIntersectWith(GeoPolyline2, out GeoPoint2[], Tolerance)
Tries to find where this ray crosses a polyline, within a tolerance.
public bool TryIntersectWith(GeoPolyline2 polyline, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
polylineGeoPolyline2The polyline.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
TryIntersectWith(GeoPolylineArc2, out GeoPoint2[])
Tries to find where this ray crosses a curved chain, using the default tolerance.
public bool TryIntersectWith(GeoPolylineArc2 chain, out GeoPoint2[] intersections)
Parameters
chainGeoPolylineArc2The curved chain.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoPolylineArc2, out GeoPoint2[], Tolerance)
Tries to find where this ray crosses a curved chain, within a tolerance.
public bool TryIntersectWith(GeoPolylineArc2 chain, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
chainGeoPolylineArc2The curved chain.
intersectionsGeoPoint2[]The crossing points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
TryIntersectWith(GeoFace2, out GeoPoint2[])
Tries to find where this ray meets a face: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay2, out GeoPoint2[]).
public bool TryIntersectWith(GeoFace2 face, out GeoPoint2[] intersections)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoFace2, out GeoPoint2[], Tolerance)
Tries to find where this ray meets a face, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay2, out GeoPoint2[], Tolerance).
public bool TryIntersectWith(GeoFace2 face, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
TryIntersectWith(GeoRectangle2, out GeoPoint2[])
Tries to find where this ray meets a rectangle: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay2, out GeoPoint2[]).
public bool TryIntersectWith(GeoRectangle2 rect, out GeoPoint2[] intersections)
Parameters
rectGeoRectangle2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoRectangle2, out GeoPoint2[], Tolerance)
Tries to find where this ray meets a rectangle, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay2, out GeoPoint2[], Tolerance).
public bool TryIntersectWith(GeoRectangle2 rect, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
rectGeoRectangle2intersectionsGeoPoint2[]toleranceTolerance
Returns
TryIntersectWith(GeoTriangle2, out GeoPoint2[])
Tries to find where this ray meets a triangle: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay2, out GeoPoint2[]).
public bool TryIntersectWith(GeoTriangle2 triangle, out GeoPoint2[] intersections)
Parameters
triangleGeoTriangle2intersectionsGeoPoint2[]
Returns
TryIntersectWith(GeoTriangle2, out GeoPoint2[], Tolerance)
Tries to find where this ray meets a triangle, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay2, out GeoPoint2[], Tolerance).
public bool TryIntersectWith(GeoTriangle2 triangle, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
triangleGeoTriangle2intersectionsGeoPoint2[]toleranceTolerance
Returns
TryIntersectWith(GeoXLine2, out GeoPoint2)
Tries to find where this ray crosses an infinite line, using the default tolerance.
public bool TryIntersectWith(GeoXLine2 xline, out GeoPoint2 intersection)
Parameters
Returns
TryIntersectWith(GeoXLine2, out GeoPoint2, Tolerance)
Tries to find where this ray crosses an infinite line, within a tolerance.
public bool TryIntersectWith(GeoXLine2 xline, out GeoPoint2 intersection, Tolerance tolerance)
Parameters
xlineGeoXLine2The infinite line.
intersectionGeoPoint2The crossing point if successful.
toleranceToleranceThe tolerance.
Returns
TryIntersectWith(GeoSpline2, out GeoPoint2[])
Tries to find where this ray crosses a spline, using the default tolerance.
public bool TryIntersectWith(GeoSpline2 spline, out GeoPoint2[] intersections)
Parameters
splineGeoSpline2The spline.
intersectionsGeoPoint2[]The points when the method returns true; empty otherwise.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
TryIntersectWith(GeoSpline2, out GeoPoint2[], Tolerance)
Tries to find where this ray crosses a spline, within a tolerance.
public bool TryIntersectWith(GeoSpline2 spline, out GeoPoint2[] intersections, Tolerance tolerance)
Parameters
splineGeoSpline2The spline.
intersectionsGeoPoint2[]The points when the method returns true; empty otherwise.
toleranceToleranceThe tolerance.
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.