Table of Contents

Method CollidesWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

CollidesWith(GeoAabb3)

Determines whether this infinite line touches an axis-aligned box, using the default tolerance.

public bool CollidesWith(GeoAabb3 box)

Parameters

box GeoAabb3

Returns

bool

CollidesWith(GeoAabb3, Tolerance)

Determines whether this infinite line touches an axis-aligned box, within a tolerance.

public bool CollidesWith(GeoAabb3 box, Tolerance tolerance)

Parameters

box GeoAabb3
tolerance Tolerance

Returns

bool

CollidesWith(GeoObb3)

Determines whether this infinite line touches an oriented box, using the default tolerance.

public bool CollidesWith(GeoObb3 box)

Parameters

box GeoObb3

Returns

bool

CollidesWith(GeoObb3, Tolerance)

Determines whether this infinite line touches an oriented box, within a tolerance.

public bool CollidesWith(GeoObb3 box, Tolerance tolerance)

Parameters

box GeoObb3
tolerance Tolerance

Returns

bool

CollidesWith(GeoSolid3)

Determines whether this infinite line touches a solid, using the default tolerance.

public bool CollidesWith(GeoSolid3 solid)

Parameters

solid GeoSolid3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the solid is null.

CollidesWith(GeoSolid3, Tolerance)

Determines whether this infinite line touches a solid, within a tolerance.

public bool CollidesWith(GeoSolid3 solid, Tolerance tolerance)

Parameters

solid GeoSolid3
tolerance Tolerance

Returns

bool

Remarks

The line through (500, 50, 10) along X collides with the box 100 by 100 by 20 with a corner at the origin, though it starts far from it: nothing of the line stops short.

Exceptions

ArgumentNullException

Thrown when the solid is null.

CollidesWith(GeoTriangle3)

Determines whether this infinite line touches a triangle, using the default tolerance.

public bool CollidesWith(GeoTriangle3 triangle)

Parameters

triangle GeoTriangle3

Returns

bool

CollidesWith(GeoTriangle3, Tolerance)

Determines whether this infinite line touches a triangle, within a tolerance.

public bool CollidesWith(GeoTriangle3 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle3
tolerance Tolerance

Returns

bool

CollidesWith(GeoPolygon3)

Determines whether this infinite line touches a polygon, using the default tolerance.

public bool CollidesWith(GeoPolygon3 polygon)

Parameters

polygon GeoPolygon3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polygon is null.

CollidesWith(GeoPolygon3, Tolerance)

Determines whether this infinite line touches a polygon, within a tolerance.

public bool CollidesWith(GeoPolygon3 polygon, Tolerance tolerance)

Parameters

polygon GeoPolygon3
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polygon is null.

CollidesWith(GeoFace3)

Determines whether this infinite line touches a face, using the default tolerance.

public bool CollidesWith(GeoFace3 face)

Parameters

face GeoFace3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the face is null.

CollidesWith(GeoFace3, Tolerance)

Determines whether this infinite line touches a face, within a tolerance.

public bool CollidesWith(GeoFace3 face, Tolerance tolerance)

Parameters

face GeoFace3
tolerance Tolerance

Returns

bool

Remarks

A hole is not material: the line through (50, 50, 10) along -Z passes through the hole 40 by 40 in the middle of the square 100 by 100 in the floor and collides with nothing.

Exceptions

ArgumentNullException

Thrown when the face is null.

CollidesWith(GeoPlane3)

Determines whether this infinite line touches a plane, using the default tolerance.

public bool CollidesWith(GeoPlane3 plane)

Parameters

plane GeoPlane3

Returns

bool

CollidesWith(GeoPlane3, Tolerance)

Determines whether this infinite line touches a plane, within a tolerance.

public bool CollidesWith(GeoPlane3 plane, Tolerance tolerance)

Parameters

plane GeoPlane3
tolerance Tolerance

Returns

bool

Remarks

A line whose origin lies within the planar tolerance of the plane touches it. Otherwise it touches where it crosses: the line through (0, 0, 10) along (1, 0, 0.0001) touches the floor a hundred thousand behind its origin; at a sine of 1E-9 or less a crossing further out than a double can place within the point tolerance is refused, so the line through (0, 0, 100) along (1, 0, -1E-11) does not touch the floor.

CollidesWith(GeoLine3)

Determines whether this infinite line touches a line segment, using the default tolerance.

public bool CollidesWith(GeoLine3 line)

Parameters

line GeoLine3

Returns

bool

CollidesWith(GeoLine3, Tolerance)

Determines whether this infinite line touches a line segment, within a tolerance.

public bool CollidesWith(GeoLine3 line, Tolerance tolerance)

Parameters

line GeoLine3
tolerance Tolerance

Returns

bool

Remarks

A segment lying along the line touches it along a length and crosses it nowhere, and still collides with it.

CollidesWith(GeoRay3)

Determines whether this infinite line touches a ray, using the default tolerance.

public bool CollidesWith(GeoRay3 ray)

Parameters

ray GeoRay3

Returns

bool

CollidesWith(GeoRay3, Tolerance)

Determines whether this infinite line touches a ray, within a tolerance.

public bool CollidesWith(GeoRay3 ray, Tolerance tolerance)

Parameters

ray GeoRay3
tolerance Tolerance

Returns

bool

CollidesWith(GeoXLine3)

Determines whether this infinite line touches another infinite line, using the default tolerance.

public bool CollidesWith(GeoXLine3 other)

Parameters

other GeoXLine3

Returns

bool

CollidesWith(GeoXLine3, Tolerance)

Determines whether this infinite line touches another infinite line, within a tolerance.

public bool CollidesWith(GeoXLine3 other, Tolerance tolerance)

Parameters

other GeoXLine3
tolerance Tolerance

Returns

bool

Remarks

The line through the origin along X and the one through (50, -50, 0) along Y cross at (50, 0, 0); the one through (50, -50, 10) along Y passes 10 over it and does not touch it. Two lines side by side touch only where they are within the point tolerance of each other.

CollidesWith(GeoArc3)

Determines whether this infinite line touches an arc, using the default tolerance.

public bool CollidesWith(GeoArc3 arc)

Parameters

arc GeoArc3

Returns

bool

CollidesWith(GeoArc3, Tolerance)

Determines whether this infinite line touches an arc, within a tolerance.

public bool CollidesWith(GeoArc3 arc, Tolerance tolerance)

Parameters

arc GeoArc3
tolerance Tolerance

Returns

bool

CollidesWith(GeoCircle3)

Determines whether this infinite line touches a circle, using the default tolerance.

public bool CollidesWith(GeoCircle3 circle)

Parameters

circle GeoCircle3

Returns

bool

CollidesWith(GeoCircle3, Tolerance)

Determines whether this infinite line touches the rim of a circle, within a tolerance.

public bool CollidesWith(GeoCircle3 circle, Tolerance tolerance)

Parameters

circle GeoCircle3
tolerance Tolerance

Returns

bool

CollidesWith(GeoEllipse3)

Determines whether this infinite line touches an ellipse, using the default tolerance.

public bool CollidesWith(GeoEllipse3 ellipse)

Parameters

ellipse GeoEllipse3

Returns

bool

CollidesWith(GeoEllipse3, Tolerance)

Determines whether this infinite line touches the rim of an ellipse, within a tolerance.

public bool CollidesWith(GeoEllipse3 ellipse, Tolerance tolerance)

Parameters

ellipse GeoEllipse3
tolerance Tolerance

Returns

bool

CollidesWith(GeoEdge3)

Determines whether this infinite line touches an edge, using the default tolerance.

public bool CollidesWith(GeoEdge3 edge)

Parameters

edge GeoEdge3

Returns

bool

CollidesWith(GeoEdge3, Tolerance)

Determines whether this infinite line touches an edge, within a tolerance.

public bool CollidesWith(GeoEdge3 edge, Tolerance tolerance)

Parameters

edge GeoEdge3
tolerance Tolerance

Returns

bool

CollidesWith(GeoPolyline3)

Determines whether this infinite line touches a polyline, using the default tolerance.

public bool CollidesWith(GeoPolyline3 polyline)

Parameters

polyline GeoPolyline3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polyline is null.

CollidesWith(GeoPolyline3, Tolerance)

Determines whether this infinite line touches a polyline, within a tolerance.

public bool CollidesWith(GeoPolyline3 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline3
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the polyline is null.

CollidesWith(GeoPolylineArc3)

Determines whether this infinite line touches a curved chain, using the default tolerance.

public bool CollidesWith(GeoPolylineArc3 chain)

Parameters

chain GeoPolylineArc3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

CollidesWith(GeoPolylineArc3, Tolerance)

Determines whether this infinite line touches a curved chain, within a tolerance.

public bool CollidesWith(GeoPolylineArc3 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc3
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved chain is null.

CollidesWith(GeoPolygonArc3)

Determines whether this infinite line touches a curved loop, using the default tolerance.

public bool CollidesWith(GeoPolygonArc3 loop)

Parameters

loop GeoPolygonArc3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

CollidesWith(GeoPolygonArc3, Tolerance)

Determines whether this infinite line touches a curved loop, within a tolerance.

public bool CollidesWith(GeoPolygonArc3 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc3
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the curved loop is null.

CollidesWith(GeoSphere3)

Determines whether this infinite line touches a ball, using the default tolerance.

public bool CollidesWith(GeoSphere3 sphere)

Parameters

sphere GeoSphere3

Returns

bool

CollidesWith(GeoSphere3, Tolerance)

Determines whether this infinite line touches a ball, within a tolerance.

public bool CollidesWith(GeoSphere3 sphere, Tolerance tolerance)

Parameters

sphere GeoSphere3
tolerance Tolerance

Returns

bool

CollidesWith(GeoSpline3)

Determines whether this infinite line touches a spline, using the default tolerance.

public bool CollidesWith(GeoSpline3 spline)

Parameters

spline GeoSpline3

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

CollidesWith(GeoSpline3, Tolerance)

Determines whether this infinite line touches a spline, within a tolerance.

public bool CollidesWith(GeoSpline3 spline, Tolerance tolerance)

Parameters

spline GeoSpline3
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.