Table of Contents

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

line GeoLine2

The line segment.

intersection GeoPoint2

The crossing point if successful.

Returns

bool

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

line GeoLine2

The line segment.

intersection GeoPoint2

The crossing point if successful, placed on this ray, never behind its origin.

tolerance Tolerance

The tolerance.

Returns

bool

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

other GeoRay2

The other ray.

intersection GeoPoint2

The crossing point if successful.

Returns

bool

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

other GeoRay2

The other ray.

intersection GeoPoint2

The crossing point if successful, placed on this ray.

tolerance Tolerance

The tolerance.

Returns

bool

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

arc GeoArc2

The arc.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

arc GeoArc2

The arc.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

circle GeoCircle2

The circle.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

circle GeoCircle2

The circle.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

loop GeoPolygonArc2

The curved loop.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

loop GeoPolygonArc2

The curved loop.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

polyline GeoPolyline2

The polyline.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

polyline GeoPolyline2

The polyline.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

chain GeoPolylineArc2

The curved chain.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

Returns

bool

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

chain GeoPolylineArc2

The curved chain.

intersections GeoPoint2[]

The crossing points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

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

face GeoFace2
intersections GeoPoint2[]

Returns

bool

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

face GeoFace2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

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

rect GeoRectangle2
intersections GeoPoint2[]

Returns

bool

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

rect GeoRectangle2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

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

triangle GeoTriangle2
intersections GeoPoint2[]

Returns

bool

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

triangle GeoTriangle2
intersections GeoPoint2[]
tolerance Tolerance

Returns

bool

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

xline GeoXLine2

The infinite line.

intersection GeoPoint2

The crossing point if successful.

Returns

bool

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

xline GeoXLine2

The infinite line.

intersection GeoPoint2

The crossing point if successful.

tolerance Tolerance

The tolerance.

Returns

bool

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

spline GeoSpline2

The spline.

intersections GeoPoint2[]

The points when the method returns true; empty otherwise.

Returns

bool

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

spline GeoSpline2

The spline.

intersections GeoPoint2[]

The points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.