Method CollidesWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
CollidesWith(GeoSolid3)
Checks whether this ray touches a solid, using the default tolerance.
public bool CollidesWith(GeoSolid3 solid)
Parameters
solidGeoSolid3
Returns
CollidesWith(GeoSolid3, Tolerance)
Checks whether this ray touches a solid, within a tolerance.
public bool CollidesWith(GeoSolid3 solid, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoTriangle3)
Checks whether this ray runs into a triangle, using the default tolerance.
public bool CollidesWith(GeoTriangle3 triangle)
Parameters
triangleGeoTriangle3
Returns
CollidesWith(GeoTriangle3, Tolerance)
Checks whether this ray runs into a triangle, within a tolerance.
public bool CollidesWith(GeoTriangle3 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle3toleranceTolerance
Returns
CollidesWith(GeoPolygon3)
Checks whether this ray runs into a polygon, using the default tolerance.
public bool CollidesWith(GeoPolygon3 polygon)
Parameters
polygonGeoPolygon3
Returns
CollidesWith(GeoPolygon3, Tolerance)
Checks whether this ray runs into a polygon, within a tolerance.
public bool CollidesWith(GeoPolygon3 polygon, Tolerance tolerance)
Parameters
polygonGeoPolygon3toleranceTolerance
Returns
CollidesWith(GeoFace3)
Checks whether this ray runs into a face, using the default tolerance.
public bool CollidesWith(GeoFace3 face)
Parameters
faceGeoFace3
Returns
CollidesWith(GeoFace3, Tolerance)
Checks whether this ray runs into a face, within a tolerance.
public bool CollidesWith(GeoFace3 face, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoAabb3)
Checks whether this ray starts inside an axis-aligned box or runs into it, using the default tolerance.
public bool CollidesWith(GeoAabb3 box)
Parameters
boxGeoAabb3
Returns
CollidesWith(GeoAabb3, Tolerance)
Checks whether this ray starts inside an axis-aligned box or runs into it, within a tolerance.
public bool CollidesWith(GeoAabb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoObb3)
Checks whether this ray starts inside an oriented box or runs into it, using the default tolerance.
public bool CollidesWith(GeoObb3 box)
Parameters
boxGeoObb3
Returns
CollidesWith(GeoObb3, Tolerance)
Checks whether this ray starts inside an oriented box or runs into it, within a tolerance.
public bool CollidesWith(GeoObb3 box, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoArc3)
Checks whether this ray touches an arc, using the default tolerance.
public bool CollidesWith(GeoArc3 arc)
Parameters
arcGeoArc3
Returns
CollidesWith(GeoArc3, Tolerance)
Checks whether this ray touches an arc, within a tolerance.
public bool CollidesWith(GeoArc3 arc, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoCircle3)
Checks whether this ray touches a circle, using the default tolerance.
public bool CollidesWith(GeoCircle3 circle)
Parameters
circleGeoCircle3
Returns
CollidesWith(GeoCircle3, Tolerance)
Checks whether this ray touches a circle, within a tolerance.
public bool CollidesWith(GeoCircle3 circle, Tolerance tolerance)
Parameters
circleGeoCircle3toleranceTolerance
Returns
CollidesWith(GeoLine3)
Determines whether this ray touches a segment.
public bool CollidesWith(GeoLine3 line)
Parameters
lineGeoLine3
Returns
Remarks
Two pieces lying along each other touch along a length and cross nowhere, so this is not the crossing test with the place thrown away: it is the shortest line between the two having no length.
CollidesWith(GeoLine3, Tolerance)
Determines whether this ray touches a segment, within a tolerance.
public bool CollidesWith(GeoLine3 line, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoEdge3)
Checks whether this ray touches an edge: the same answer as CollidesWith(GeoRay3).
public bool CollidesWith(GeoEdge3 edge)
Parameters
edgeGeoEdge3
Returns
CollidesWith(GeoEdge3, Tolerance)
Checks whether this ray touches an edge, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).
public bool CollidesWith(GeoEdge3 edge, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoPolygonArc3)
Checks whether this ray touches a curved loop: the same answer as CollidesWith(GeoRay3).
public bool CollidesWith(GeoPolygonArc3 loop)
Parameters
loopGeoPolygonArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
CollidesWith(GeoPolygonArc3, Tolerance)
Checks whether this ray touches a curved loop, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).
public bool CollidesWith(GeoPolygonArc3 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the loop is null.
CollidesWith(GeoPolyline3)
Checks whether this ray touches a straight chain: the same answer as CollidesWith(GeoRay3).
public bool CollidesWith(GeoPolyline3 polyline)
Parameters
polylineGeoPolyline3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolyline3, Tolerance)
Checks whether this ray touches a straight chain, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).
public bool CollidesWith(GeoPolyline3 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolylineArc3)
Checks whether this ray touches a curved chain: the same answer as CollidesWith(GeoRay3).
public bool CollidesWith(GeoPolylineArc3 chain)
Parameters
chainGeoPolylineArc3
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPolylineArc3, Tolerance)
Checks whether this ray touches a curved chain, within a tolerance: the same answer as CollidesWith(GeoRay3, Tolerance).
public bool CollidesWith(GeoPolylineArc3 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the chain is null.
CollidesWith(GeoPlane3)
Checks whether this ray touches a plane: the same answer as CollidesWith(GeoRay3, GeoPlane3).
public bool CollidesWith(GeoPlane3 plane)
Parameters
planeGeoPlane3The plane.
Returns
Remarks
A ray from (0, 0, 10) pointing straight down crosses the floor plane at the origin; one lying in the floor touches it everywhere and crosses it nowhere.
CollidesWith(GeoPlane3, Tolerance)
Checks whether this ray touches a plane, within a tolerance: the same answer as CollidesWith(GeoRay3, GeoPlane3, Tolerance).
public bool CollidesWith(GeoPlane3 plane, Tolerance tolerance)
Parameters
Returns
Remarks
A ray from (0, 0, 10) pointing straight down crosses the floor plane at the origin; one lying in the floor touches it everywhere and crosses it nowhere.
CollidesWith(GeoRay3)
Checks whether this ray and another touch: the same answer as CollidesWith(GeoRay3, GeoRay3).
public bool CollidesWith(GeoRay3 other)
Parameters
otherGeoRay3The ray.
Returns
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.
CollidesWith(GeoRay3, Tolerance)
Checks whether this ray and another touch, within a tolerance: the same answer as CollidesWith(GeoRay3, GeoRay3, Tolerance).
public bool CollidesWith(GeoRay3 other, Tolerance tolerance)
Parameters
Returns
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.
CollidesWith(GeoSphere3)
Determines whether this ray touches a ball, using the default tolerance.
public bool CollidesWith(GeoSphere3 sphere)
Parameters
sphereGeoSphere3
Returns
CollidesWith(GeoSphere3, Tolerance)
Determines whether this ray touches a ball, within a tolerance.
public bool CollidesWith(GeoSphere3 sphere, Tolerance tolerance)
Parameters
sphereGeoSphere3toleranceTolerance
Returns
CollidesWith(GeoSpline3)
Determines whether this ray touches a spline, using the default tolerance.
public bool CollidesWith(GeoSpline3 spline)
Parameters
splineGeoSpline3
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
CollidesWith(GeoSpline3, Tolerance)
Determines whether this ray touches a spline, within a tolerance.
public bool CollidesWith(GeoSpline3 spline, Tolerance tolerance)
Parameters
splineGeoSpline3toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
CollidesWith(GeoXLine3)
Determines whether this ray touches an infinite line, using the default tolerance.
public bool CollidesWith(GeoXLine3 xline)
Parameters
xlineGeoXLine3
Returns
CollidesWith(GeoXLine3, Tolerance)
Determines whether this ray touches an infinite line, within a tolerance.
public bool CollidesWith(GeoXLine3 xline, Tolerance tolerance)