Table of Contents

Method TryIntersectWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

TryIntersectWith(GeoPlane3, out GeoPoint3)

Tries to find the point where this ray crosses a plane, using the default tolerance.

public bool TryIntersectWith(GeoPlane3 plane, out GeoPoint3 intersection)

Parameters

plane GeoPlane3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoPlane3, out GeoPoint3, Tolerance)

Tries to find the point where this ray crosses a plane, within a tolerance.

public bool TryIntersectWith(GeoPlane3 plane, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

plane GeoPlane3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoTriangle3, out GeoPoint3)

Tries to find the point where this ray crosses a triangle, using the default tolerance.

public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3 intersection)

Parameters

triangle GeoTriangle3
intersection GeoPoint3

Returns

bool

TryIntersectWith(GeoTriangle3, out GeoPoint3, Tolerance)

Tries to find the point where this ray crosses a triangle, within a tolerance: the first point GetIntersections(GeoTriangle3, Tolerance) gives, and false where it gives none.

public bool TryIntersectWith(GeoTriangle3 triangle, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

triangle GeoTriangle3
intersection GeoPoint3
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoFace3, out GeoPoint3)

Tries to find the point where this ray crosses a face, using the default tolerance.

public bool TryIntersectWith(GeoFace3 face, out GeoPoint3 intersection)

Parameters

face GeoFace3

The face.

intersection GeoPoint3

The crossing point when the method returns true.

Returns

bool

TryIntersectWith(GeoFace3, out GeoPoint3, Tolerance)

Tries to find the point where this ray crosses a face, within a tolerance: the first point GetIntersections(GeoFace3, Tolerance) gives, and false where it gives none.

public bool TryIntersectWith(GeoFace3 face, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

face GeoFace3

The face.

intersection GeoPoint3

The crossing point when the method returns true.

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoPolygon3, out GeoPoint3)

Tries to find the point where this ray crosses a polygon, using the default tolerance.

public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3 intersection)

Parameters

polygon GeoPolygon3

The polygon.

intersection GeoPoint3

The crossing point when the method returns true.

Returns

bool

TryIntersectWith(GeoPolygon3, out GeoPoint3, Tolerance)

Tries to find the point where this ray crosses a polygon, within a tolerance: the first point GetIntersections(GeoPolygon3, Tolerance) gives, and false where it gives none.

public bool TryIntersectWith(GeoPolygon3 polygon, out GeoPoint3 intersection, Tolerance tolerance)

Parameters

polygon GeoPolygon3

The polygon.

intersection GeoPoint3

The crossing point when the method returns true.

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoArc3, out GeoPoint3[])

Tries to find where an arc crosses this ray, using the default tolerance.

public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections)

Parameters

arc GeoArc3

The arc.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoArc3, out GeoPoint3[], Tolerance)

Tries to find where an arc crosses this ray, within a tolerance.

public bool TryIntersectWith(GeoArc3 arc, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

arc GeoArc3

The arc.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoCircle3, out GeoPoint3[])

Tries to find where a circle crosses this ray, using the default tolerance.

public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections)

Parameters

circle GeoCircle3

The circle.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoCircle3, out GeoPoint3[], Tolerance)

Tries to find where a circle crosses this ray, within a tolerance.

public bool TryIntersectWith(GeoCircle3 circle, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

circle GeoCircle3

The circle.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoLine3, out GeoPoint3[])

Tries to find where this ray crosses a segment.

public bool TryIntersectWith(GeoLine3 line, out GeoPoint3[] intersections)

Parameters

line GeoLine3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoLine3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses a segment, within a tolerance.

public bool TryIntersectWith(GeoLine3 line, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

line GeoLine3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoEdge3, out GeoPoint3[])

Tries to find where this ray crosses an edge: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

public bool TryIntersectWith(GeoEdge3 edge, out GeoPoint3[] intersections)

Parameters

edge GeoEdge3
intersections GeoPoint3[]

Returns

bool

TryIntersectWith(GeoEdge3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses an edge, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

public bool TryIntersectWith(GeoEdge3 edge, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

edge GeoEdge3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

TryIntersectWith(GeoPolygonArc3, out GeoPoint3[])

Tries to find where this ray crosses a curved loop: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

public bool TryIntersectWith(GeoPolygonArc3 loop, out GeoPoint3[] intersections)

Parameters

loop GeoPolygonArc3
intersections GeoPoint3[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolygonArc3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses a curved loop, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

public bool TryIntersectWith(GeoPolygonArc3 loop, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

loop GeoPolygonArc3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the loop is null.

TryIntersectWith(GeoPolyline3, out GeoPoint3[])

Tries to find where this ray crosses a straight chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections)

Parameters

polyline GeoPolyline3
intersections GeoPoint3[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolyline3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses a straight chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

public bool TryIntersectWith(GeoPolyline3 polyline, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

polyline GeoPolyline3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc3, out GeoPoint3[])

Tries to find where this ray crosses a curved chain: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[]).

public bool TryIntersectWith(GeoPolylineArc3 chain, out GeoPoint3[] intersections)

Parameters

chain GeoPolylineArc3
intersections GeoPoint3[]

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoPolylineArc3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses a curved chain, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance).

public bool TryIntersectWith(GeoPolylineArc3 chain, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

chain GeoPolylineArc3
intersections GeoPoint3[]
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the chain is null.

TryIntersectWith(GeoRay3, out GeoPoint3[])

Tries to find where this ray and another cross: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[]).

public bool TryIntersectWith(GeoRay3 other, out GeoPoint3[] intersections)

Parameters

other GeoRay3

The ray.

intersections GeoPoint3[]

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

Returns

bool

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.

TryIntersectWith(GeoRay3, out GeoPoint3[], Tolerance)

Tries to find where this ray and another cross, within a tolerance: the same answer, and the same points in the same order, as TryIntersectWith(GeoRay3, GeoRay3, out GeoPoint3[], Tolerance).

public bool TryIntersectWith(GeoRay3 other, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

other GeoRay3

The ray.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

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.

TryIntersectWith(GeoSphere3, out GeoPoint3[])

Tries to find where this ray crosses the surface of a ball, using the default tolerance.

public bool TryIntersectWith(GeoSphere3 sphere, out GeoPoint3[] intersections)

Parameters

sphere GeoSphere3

The ball.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoSphere3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses the surface of a ball, within a tolerance.

public bool TryIntersectWith(GeoSphere3 sphere, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

sphere GeoSphere3

The ball.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool

TryIntersectWith(GeoSpline3, out GeoPoint3[])

Tries to find where this ray meets a spline, using the default tolerance.

public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections)

Parameters

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

TryIntersectWith(GeoSpline3, out GeoPoint3[], Tolerance)

Tries to find where this ray meets a spline, within a tolerance.

public bool TryIntersectWith(GeoSpline3 spline, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

spline GeoSpline3

The spline.

intersections GeoPoint3[]

The points when the method returns true; empty otherwise.

tolerance Tolerance

The tolerance.

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

TryIntersectWith(GeoXLine3, out GeoPoint3[])

Tries to find where this ray crosses an infinite line, using the default tolerance.

public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3[] intersections)

Parameters

xline GeoXLine3

The infinite line.

intersections GeoPoint3[]

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

Returns

bool

TryIntersectWith(GeoXLine3, out GeoPoint3[], Tolerance)

Tries to find where this ray crosses an infinite line, within a tolerance.

public bool TryIntersectWith(GeoXLine3 xline, out GeoPoint3[] intersections, Tolerance tolerance)

Parameters

xline GeoXLine3

The infinite line.

intersections GeoPoint3[]

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

tolerance Tolerance

The tolerance.

Returns

bool