Table of Contents

Method CollidesWith

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

CollidesWith(GeoLine2)

Checks whether the edge touches a segment.

public bool CollidesWith(GeoLine2 line)

Parameters

line GeoLine2

Returns

bool

CollidesWith(GeoLine2, Tolerance)

Checks whether the edge touches a segment, within a tolerance.

public bool CollidesWith(GeoLine2 line, Tolerance tolerance)

Parameters

line GeoLine2
tolerance Tolerance

Returns

bool

Remarks

An edge is a segment or an arc and nothing else, so every one of these reads it as whichever it is and asks that shape. What counts as touching is then whatever it counts as for a segment or an arc: neither has an inside, so against another open shape only a meeting counts, while a closed one swallowing the edge whole counts as well. A segment meets a segment or an arc where the two cross or come within the point tolerance, and so do two arcs.

CollidesWith(GeoArc2)

Checks whether the edge touches an arc.

public bool CollidesWith(GeoArc2 arc)

Parameters

arc GeoArc2

Returns

bool

CollidesWith(GeoArc2, Tolerance)

Checks whether the edge touches an arc, within a tolerance.

public bool CollidesWith(GeoArc2 arc, Tolerance tolerance)

Parameters

arc GeoArc2
tolerance Tolerance

Returns

bool

CollidesWith(GeoEdge2)

Checks whether the edge touches another edge.

public bool CollidesWith(GeoEdge2 other)

Parameters

other GeoEdge2

Returns

bool

CollidesWith(GeoEdge2, Tolerance)

Checks whether the edge touches another edge, within a tolerance.

public bool CollidesWith(GeoEdge2 other, Tolerance tolerance)

Parameters

other GeoEdge2
tolerance Tolerance

Returns

bool

CollidesWith(GeoCircle2)

Checks whether the edge touches a circle.

public bool CollidesWith(GeoCircle2 circle)

Parameters

circle GeoCircle2

Returns

bool

CollidesWith(GeoCircle2, Tolerance)

Checks whether the edge touches a circle, within a tolerance.

public bool CollidesWith(GeoCircle2 circle, Tolerance tolerance)

Parameters

circle GeoCircle2
tolerance Tolerance

Returns

bool

CollidesWith(GeoRectangle2)

Checks whether the edge touches a rectangle.

public bool CollidesWith(GeoRectangle2 rect)

Parameters

rect GeoRectangle2

Returns

bool

CollidesWith(GeoRectangle2, Tolerance)

Checks whether the edge touches a rectangle, within a tolerance.

public bool CollidesWith(GeoRectangle2 rect, Tolerance tolerance)

Parameters

rect GeoRectangle2
tolerance Tolerance

Returns

bool

CollidesWith(GeoPolygon2)

Checks whether the edge touches a polygon.

public bool CollidesWith(GeoPolygon2 poly)

Parameters

poly GeoPolygon2

Returns

bool

CollidesWith(GeoPolygon2, Tolerance)

Checks whether the edge touches a polygon, within a tolerance.

public bool CollidesWith(GeoPolygon2 poly, Tolerance tolerance)

Parameters

poly GeoPolygon2
tolerance Tolerance

Returns

bool

CollidesWith(GeoPolyline2)

Checks whether the edge touches a polyline.

public bool CollidesWith(GeoPolyline2 polyline)

Parameters

polyline GeoPolyline2

Returns

bool

CollidesWith(GeoPolyline2, Tolerance)

Checks whether the edge touches a polyline, within a tolerance.

public bool CollidesWith(GeoPolyline2 polyline, Tolerance tolerance)

Parameters

polyline GeoPolyline2
tolerance Tolerance

Returns

bool

CollidesWith(GeoPolygonArc2)

Checks whether the edge touches a curved loop.

public bool CollidesWith(GeoPolygonArc2 loop)

Parameters

loop GeoPolygonArc2

Returns

bool

CollidesWith(GeoPolygonArc2, Tolerance)

Checks whether the edge touches a curved loop, within a tolerance.

public bool CollidesWith(GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc2
tolerance Tolerance

Returns

bool

CollidesWith(GeoPolylineArc2)

Checks whether the edge touches a curved chain.

public bool CollidesWith(GeoPolylineArc2 chain)

Parameters

chain GeoPolylineArc2

Returns

bool

CollidesWith(GeoPolylineArc2, Tolerance)

Checks whether the edge touches a curved chain, within a tolerance.

public bool CollidesWith(GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc2
tolerance Tolerance

Returns

bool

CollidesWith(GeoFace2)

Checks whether this edge touches a face.

public bool CollidesWith(GeoFace2 face)

Parameters

face GeoFace2

Returns

bool

CollidesWith(GeoFace2, Tolerance)

Checks whether this edge touches a face, within a tolerance.

public bool CollidesWith(GeoFace2 face, Tolerance tolerance)

Parameters

face GeoFace2
tolerance Tolerance

Returns

bool

CollidesWith(GeoTriangle2)

Checks whether this edge touches a triangle, using the default tolerance.

public bool CollidesWith(GeoTriangle2 triangle)

Parameters

triangle GeoTriangle2

Returns

bool

CollidesWith(GeoTriangle2, Tolerance)

Checks whether this edge touches a triangle, within a tolerance.

public bool CollidesWith(GeoTriangle2 triangle, Tolerance tolerance)

Parameters

triangle GeoTriangle2
tolerance Tolerance

Returns

bool

CollidesWith(GeoRay2)

Checks whether the edge touches a ray.

public bool CollidesWith(GeoRay2 ray)

Parameters

ray GeoRay2

Returns

bool

CollidesWith(GeoRay2, Tolerance)

Checks whether the edge touches a ray, within a tolerance.

public bool CollidesWith(GeoRay2 ray, Tolerance tolerance)

Parameters

ray GeoRay2
tolerance Tolerance

Returns

bool

CollidesWith(GeoXLine2)

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

public bool CollidesWith(GeoXLine2 xline)

Parameters

xline GeoXLine2

Returns

bool

CollidesWith(GeoXLine2, Tolerance)

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

public bool CollidesWith(GeoXLine2 xline, Tolerance tolerance)

Parameters

xline GeoXLine2
tolerance Tolerance

Returns

bool

CollidesWith(GeoSpline2)

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

public bool CollidesWith(GeoSpline2 spline)

Parameters

spline GeoSpline2

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.

CollidesWith(GeoSpline2, Tolerance)

Determines whether this edge touches a spline, within a tolerance.

public bool CollidesWith(GeoSpline2 spline, Tolerance tolerance)

Parameters

spline GeoSpline2
tolerance Tolerance

Returns

bool

Exceptions

ArgumentNullException

Thrown when the spline is null.