Method CollidesWith
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
CollidesWith(GeoLine2)
Determines whether this infinite line touches a line segment, using the default tolerance.
public bool CollidesWith(GeoLine2 line)
Parameters
lineGeoLine2
Returns
CollidesWith(GeoLine2, Tolerance)
Determines whether this infinite line touches a line segment, within a tolerance.
public bool CollidesWith(GeoLine2 line, Tolerance tolerance)
Parameters
Returns
Remarks
A segment lying along the line touches it along a length and crosses it nowhere, and still collides with it.
CollidesWith(GeoRay2)
Determines whether this infinite line touches a ray, using the default tolerance.
public bool CollidesWith(GeoRay2 ray)
Parameters
rayGeoRay2
Returns
CollidesWith(GeoRay2, Tolerance)
Determines whether this infinite line touches a ray, within a tolerance.
public bool CollidesWith(GeoRay2 ray, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoXLine2)
Determines whether this infinite line touches another infinite line, using the default tolerance.
public bool CollidesWith(GeoXLine2 other)
Parameters
otherGeoXLine2
Returns
CollidesWith(GeoXLine2, Tolerance)
Determines whether this infinite line touches another infinite line, within a tolerance.
public bool CollidesWith(GeoXLine2 other, Tolerance tolerance)
Parameters
Returns
Remarks
The line through the origin along X and the one through (50, -50) along Y cross at (50, 0); two lines side by side touch only where they are within the point tolerance of each other.
CollidesWith(GeoArc2)
Determines whether this infinite line touches an arc, using the default tolerance.
public bool CollidesWith(GeoArc2 arc)
Parameters
arcGeoArc2
Returns
CollidesWith(GeoArc2, Tolerance)
Determines whether this infinite line touches an arc, within a tolerance.
public bool CollidesWith(GeoArc2 arc, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoCircle2)
Determines whether this infinite line touches a circle, using the default tolerance.
public bool CollidesWith(GeoCircle2 circle)
Parameters
circleGeoCircle2
Returns
CollidesWith(GeoCircle2, Tolerance)
Determines whether this infinite line touches a circle, within a tolerance.
public bool CollidesWith(GeoCircle2 circle, Tolerance tolerance)
Parameters
circleGeoCircle2toleranceTolerance
Returns
CollidesWith(GeoEllipse2)
Determines whether this infinite line touches an ellipse, using the default tolerance.
public bool CollidesWith(GeoEllipse2 ellipse)
Parameters
ellipseGeoEllipse2
Returns
CollidesWith(GeoEllipse2, Tolerance)
Determines whether this infinite line touches an ellipse, within a tolerance.
public bool CollidesWith(GeoEllipse2 ellipse, Tolerance tolerance)
Parameters
ellipseGeoEllipse2toleranceTolerance
Returns
CollidesWith(GeoEdge2)
Determines whether this infinite line touches an edge, using the default tolerance.
public bool CollidesWith(GeoEdge2 edge)
Parameters
edgeGeoEdge2
Returns
CollidesWith(GeoEdge2, Tolerance)
Determines whether this infinite line touches an edge, within a tolerance.
public bool CollidesWith(GeoEdge2 edge, Tolerance tolerance)
Parameters
Returns
CollidesWith(GeoPolyline2)
Determines whether this infinite line touches a polyline, using the default tolerance.
public bool CollidesWith(GeoPolyline2 polyline)
Parameters
polylineGeoPolyline2
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
CollidesWith(GeoPolyline2, Tolerance)
Determines whether this infinite line touches a polyline, within a tolerance.
public bool CollidesWith(GeoPolyline2 polyline, Tolerance tolerance)
Parameters
polylineGeoPolyline2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the polyline is null.
CollidesWith(GeoPolygon2)
Determines whether this infinite line touches a polygon, using the default tolerance.
public bool CollidesWith(GeoPolygon2 poly)
Parameters
polyGeoPolygon2
Returns
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoPolygon2, Tolerance)
Determines whether this infinite line touches a polygon, within a tolerance.
public bool CollidesWith(GeoPolygon2 poly, Tolerance tolerance)
Parameters
polyGeoPolygon2toleranceTolerance
Returns
Remarks
The line through (500, 50) along X collides with the square 100 by 100 with a corner at the origin, though it starts far from it: nothing of the line stops short.
Exceptions
- ArgumentNullException
Thrown when the polygon is null.
CollidesWith(GeoPolylineArc2)
Determines whether this infinite line touches a curved chain, using the default tolerance.
public bool CollidesWith(GeoPolylineArc2 chain)
Parameters
chainGeoPolylineArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
CollidesWith(GeoPolylineArc2, Tolerance)
Determines whether this infinite line touches a curved chain, within a tolerance.
public bool CollidesWith(GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
chainGeoPolylineArc2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the curved chain is null.
CollidesWith(GeoPolygonArc2)
Determines whether this infinite line touches a curved loop, using the default tolerance.
public bool CollidesWith(GeoPolygonArc2 loop)
Parameters
loopGeoPolygonArc2
Returns
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.
CollidesWith(GeoPolygonArc2, Tolerance)
Determines whether this infinite line touches a curved loop, within a tolerance.
public bool CollidesWith(GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
loopGeoPolygonArc2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the curved loop is null.
CollidesWith(GeoRectangle2)
Determines whether this infinite line touches a rectangle, using the default tolerance.
public bool CollidesWith(GeoRectangle2 rect)
Parameters
rectGeoRectangle2
Returns
CollidesWith(GeoRectangle2, Tolerance)
Determines whether this infinite line touches a rectangle, within a tolerance.
public bool CollidesWith(GeoRectangle2 rect, Tolerance tolerance)
Parameters
rectGeoRectangle2toleranceTolerance
Returns
CollidesWith(GeoTriangle2)
Determines whether this infinite line touches a triangle, using the default tolerance.
public bool CollidesWith(GeoTriangle2 triangle)
Parameters
triangleGeoTriangle2
Returns
CollidesWith(GeoTriangle2, Tolerance)
Determines whether this infinite line touches a triangle, within a tolerance.
public bool CollidesWith(GeoTriangle2 triangle, Tolerance tolerance)
Parameters
triangleGeoTriangle2toleranceTolerance
Returns
CollidesWith(GeoFace2)
Determines whether this infinite line touches a face, using the default tolerance.
public bool CollidesWith(GeoFace2 face)
Parameters
faceGeoFace2
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoFace2, Tolerance)
Determines whether this infinite line touches a face, within a tolerance.
public bool CollidesWith(GeoFace2 face, Tolerance tolerance)
Parameters
Returns
Exceptions
- ArgumentNullException
Thrown when the face is null.
CollidesWith(GeoSpline2)
Determines whether this infinite line touches a spline, using the default tolerance.
public bool CollidesWith(GeoSpline2 spline)
Parameters
splineGeoSpline2
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.
CollidesWith(GeoSpline2, Tolerance)
Determines whether this infinite line touches a spline, within a tolerance.
public bool CollidesWith(GeoSpline2 spline, Tolerance tolerance)
Parameters
splineGeoSpline2toleranceTolerance
Returns
Exceptions
- ArgumentNullException
Thrown when the spline is null.