Table of Contents

Class Triangle2

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

What a triangle of the plane meets, how far off it is, and the rest of what the shapes of the plane ask each other.

public static class Triangle2
Inheritance
Triangle2
Inherited Members

Remarks

A triangle is the polygon of its three corners, and every question here is asked of that polygon, so a triangle and the polygon ToPolygon() makes of it give the same answers. The one thing a polygon cannot be is a triangle two of whose corners stand on each other, within the point tolerance: a polygon has three distinct corners at the least. Such a triangle has no width, and is asked as the segment between its two corners furthest apart, which is all of it there is. The walk along the edges is the one exception: it goes round the corners as they stand, A to B to C and back, so it reads no tolerance and a triangle of one point is walked too.

Each pair is worked out here one way only, the triangle first; the other shapes ask from their side by coming here, and turn a shortest segment round so that it leaves them.

Methods

CollidesWith(GeoTriangle2, GeoArc2)

Checks whether a triangle touches an arc, using the default tolerance.

CollidesWith(GeoTriangle2, GeoArc2, Tolerance)

Checks whether a triangle touches an arc, within a tolerance.

CollidesWith(GeoTriangle2, GeoCircle2)

Checks whether a triangle touches a circle, using the default tolerance.

CollidesWith(GeoTriangle2, GeoCircle2, Tolerance)

Checks whether a triangle touches a circle, within a tolerance.

CollidesWith(GeoTriangle2, GeoEdge2)

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

CollidesWith(GeoTriangle2, GeoEdge2, Tolerance)

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

CollidesWith(GeoTriangle2, GeoFace2)

Checks whether a triangle touches a face, using the default tolerance.

CollidesWith(GeoTriangle2, GeoFace2, Tolerance)

Checks whether a triangle touches a face, within a tolerance.

CollidesWith(GeoTriangle2, GeoLine2)

Checks whether a triangle touches a segment, using the default tolerance.

CollidesWith(GeoTriangle2, GeoLine2, Tolerance)

Checks whether a triangle touches a segment, within a tolerance.

CollidesWith(GeoTriangle2, GeoPolygon2)

Checks whether a triangle touches a polygon, using the default tolerance.

CollidesWith(GeoTriangle2, GeoPolygon2, Tolerance)

Checks whether a triangle touches a polygon, within a tolerance.

CollidesWith(GeoTriangle2, GeoPolygonArc2)

Checks whether a triangle touches a curved loop, using the default tolerance.

CollidesWith(GeoTriangle2, GeoPolygonArc2, Tolerance)

Checks whether a triangle touches a curved loop, within a tolerance.

CollidesWith(GeoTriangle2, GeoPolyline2)

Checks whether a triangle touches a polyline, using the default tolerance.

CollidesWith(GeoTriangle2, GeoPolyline2, Tolerance)

Checks whether a triangle touches a polyline, within a tolerance.

CollidesWith(GeoTriangle2, GeoPolylineArc2)

Checks whether a triangle touches a curved chain, using the default tolerance.

CollidesWith(GeoTriangle2, GeoPolylineArc2, Tolerance)

Checks whether a triangle touches a curved chain, within a tolerance.

CollidesWith(GeoTriangle2, GeoRectangle2)

Checks whether a triangle touches a rectangle, using the default tolerance.

CollidesWith(GeoTriangle2, GeoRectangle2, Tolerance)

Checks whether a triangle touches a rectangle, within a tolerance.

CollidesWith(GeoTriangle2, GeoTriangle2)

Checks whether a triangle touches another triangle, using the default tolerance.

CollidesWith(GeoTriangle2, GeoTriangle2, Tolerance)

Checks whether a triangle touches another triangle, within a tolerance.

Contains(GeoTriangle2, GeoLine2)

Checks whether a triangle holds a segment whole, its edges included, using the default tolerance.

Contains(GeoTriangle2, GeoLine2, Tolerance)

Checks whether a triangle holds a segment whole, its edges included, within a tolerance.

Contains(GeoTriangle2, GeoPolyline2)

Checks whether a triangle holds a polyline whole, its edges included, using the default tolerance.

Contains(GeoTriangle2, GeoPolyline2, Tolerance)

Checks whether a triangle holds a polyline whole, its edges included, within a tolerance.

DistanceTo(GeoTriangle2, GeoArc2)

Gets the distance from a triangle to an arc, using the default tolerance.

DistanceTo(GeoTriangle2, GeoArc2, Tolerance)

Gets the distance from a triangle to an arc, within a tolerance.

DistanceTo(GeoTriangle2, GeoCircle2)

Gets the distance from a triangle to a circle.

DistanceTo(GeoTriangle2, GeoEdge2)

Gets the distance from a triangle to an edge.

DistanceTo(GeoTriangle2, GeoLine2)

Gets the distance from a triangle to a segment.

DistanceTo(GeoTriangle2, GeoPoint2)

Gets the distance from a triangle to a point: nought for a point within it.

DistanceTo(GeoTriangle2, GeoPolygon2)

Gets the distance from a triangle to a polygon.

DistanceTo(GeoTriangle2, GeoPolygonArc2)

Gets the distance from a triangle to a curved loop, using the default tolerance.

DistanceTo(GeoTriangle2, GeoPolygonArc2, Tolerance)

Gets the distance from a triangle to a curved loop, within a tolerance.

DistanceTo(GeoTriangle2, GeoPolyline2)

Gets the distance from a triangle to a polyline.

DistanceTo(GeoTriangle2, GeoPolylineArc2)

Gets the distance from a triangle to a curved chain, using the default tolerance.

DistanceTo(GeoTriangle2, GeoPolylineArc2, Tolerance)

Gets the distance from a triangle to a curved chain, within a tolerance.

DistanceTo(GeoTriangle2, GeoRectangle2)

Gets the distance from a triangle to a rectangle.

DistanceTo(GeoTriangle2, GeoTriangle2)

Gets the distance from a triangle to another triangle.

GetClosestEdge(GeoTriangle2, GeoCircle2)

Gets the edge of a triangle closest to a circle.

GetClosestEdge(GeoTriangle2, GeoLine2)

Gets the edge of a triangle closest to a segment.

GetClosestEdge(GeoTriangle2, GeoPoint2)

Gets the edge of a triangle closest to a point.

GetClosestPointOnBoundary(GeoTriangle2, GeoPoint2)

Gets the point on the edges of a triangle closest to a point.

GetDistanceAtParameter(GeoTriangle2, double)

Gets the length walked along the edges of a triangle from A to a normalized parameter.

GetDistanceAtPoint(GeoTriangle2, GeoPoint2)

Gets the length walked along the edges of a triangle from A to the point on them closest to a point.

GetIntersections(GeoTriangle2, GeoArc2)

Gets every point where the edges of a triangle meet an arc, using the default tolerance.

GetIntersections(GeoTriangle2, GeoArc2, Tolerance)

Gets every point where the edges of a triangle meet an arc, within a tolerance.

GetIntersections(GeoTriangle2, GeoCircle2)

Gets every point where the edges of a triangle meet a circle, using the default tolerance.

GetIntersections(GeoTriangle2, GeoCircle2, Tolerance)

Gets every point where the edges of a triangle meet a circle, within a tolerance.

GetIntersections(GeoTriangle2, GeoEdge2)

Gets every point where the edges of a triangle meet an edge, using the default tolerance.

GetIntersections(GeoTriangle2, GeoEdge2, Tolerance)

Gets every point where the edges of a triangle meet an edge, within a tolerance.

GetIntersections(GeoTriangle2, GeoFace2)

Gets every point where the edges of a triangle meet a face, using the default tolerance.

GetIntersections(GeoTriangle2, GeoFace2, Tolerance)

Gets every point where the edges of a triangle meet a face, within a tolerance.

GetIntersections(GeoTriangle2, GeoLine2)

Gets every point where the edges of a triangle meet a segment, using the default tolerance.

GetIntersections(GeoTriangle2, GeoLine2, Tolerance)

Gets every point where the edges of a triangle meet a segment, within a tolerance.

GetIntersections(GeoTriangle2, GeoPolygon2)

Gets every point where the edges of a triangle meet a polygon, using the default tolerance.

GetIntersections(GeoTriangle2, GeoPolygon2, Tolerance)

Gets every point where the edges of a triangle meet a polygon, within a tolerance.

GetIntersections(GeoTriangle2, GeoPolygonArc2)

Gets every point where the edges of a triangle meet a curved loop, using the default tolerance.

GetIntersections(GeoTriangle2, GeoPolygonArc2, Tolerance)

Gets every point where the edges of a triangle meet a curved loop, within a tolerance.

GetIntersections(GeoTriangle2, GeoPolyline2)

Gets every point where the edges of a triangle meet a polyline, using the default tolerance.

GetIntersections(GeoTriangle2, GeoPolyline2, Tolerance)

Gets every point where the edges of a triangle meet a polyline, within a tolerance.

GetIntersections(GeoTriangle2, GeoPolylineArc2)

Gets every point where the edges of a triangle meet a curved chain, using the default tolerance.

GetIntersections(GeoTriangle2, GeoPolylineArc2, Tolerance)

Gets every point where the edges of a triangle meet a curved chain, within a tolerance.

GetIntersections(GeoTriangle2, GeoRectangle2)

Gets every point where the edges of a triangle meet a rectangle, using the default tolerance.

GetIntersections(GeoTriangle2, GeoRectangle2, Tolerance)

Gets every point where the edges of a triangle meet a rectangle, within a tolerance.

GetIntersections(GeoTriangle2, GeoTriangle2)

Gets every point where the edges of a triangle meet another triangle, using the default tolerance.

GetIntersections(GeoTriangle2, GeoTriangle2, Tolerance)

Gets every point where the edges of a triangle meet another triangle, within a tolerance.

GetParameterAtDistance(GeoTriangle2, double)

Gets the normalized parameter at a length walked along the edges of a triangle from A; of a triangle of one point it is 0.

GetParameterAtPoint(GeoTriangle2, GeoPoint2)

Gets the normalized parameter along the edges of a triangle of the point on them closest to a point.

GetPointAtDistance(GeoTriangle2, double)

Gets the point at a length walked along the edges of a triangle from A; lengths past the perimeter wrap round.

GetPointAtParameter(GeoTriangle2, double)

Gets the point at a normalized parameter along the edges of a triangle, from A, where 1 is all the way round; values outside [0, 1] wrap round.

GetShortestLineTo(GeoTriangle2, GeoArc2)

Gets the shortest segment leaving a triangle and landing on an arc, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoArc2, Tolerance)

Gets the shortest segment leaving a triangle and landing on an arc, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoCircle2)

Gets the shortest segment leaving a triangle and landing on a circle, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoCircle2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a circle, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoEdge2)

Gets the shortest segment leaving a triangle and landing on an edge, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoEdge2, Tolerance)

Gets the shortest segment leaving a triangle and landing on an edge, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoFace2)

Gets the shortest segment leaving a triangle and landing on a face, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoFace2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a face, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoLine2)

Gets the shortest segment leaving a triangle and landing on a segment, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoLine2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a segment, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolygon2)

Gets the shortest segment leaving a triangle and landing on a polygon, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolygon2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a polygon, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolygonArc2)

Gets the shortest segment leaving a triangle and landing on a curved loop, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolygonArc2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a curved loop, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolyline2)

Gets the shortest segment leaving a triangle and landing on a polyline, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolyline2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a polyline, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolylineArc2)

Gets the shortest segment leaving a triangle and landing on a curved chain, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoPolylineArc2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a curved chain, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoRectangle2)

Gets the shortest segment leaving a triangle and landing on a rectangle, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoRectangle2, Tolerance)

Gets the shortest segment leaving a triangle and landing on a rectangle, within a tolerance.

GetShortestLineTo(GeoTriangle2, GeoTriangle2)

Gets the shortest segment leaving a triangle and landing on another triangle, using the default tolerance.

GetShortestLineTo(GeoTriangle2, GeoTriangle2, Tolerance)

Gets the shortest segment leaving a triangle and landing on another triangle, within a tolerance.

IsParallel(GeoTriangle2, GeoLine2)

Checks whether an edge of a triangle runs parallel to a segment, using the default tolerance.

IsParallel(GeoTriangle2, GeoLine2, Tolerance)

Checks whether an edge of a triangle runs parallel to a segment, within a tolerance.

SignedDistanceTo(GeoTriangle2, GeoPoint2)

Gets the distance from a triangle to a point, negative for a point within it, using the default tolerance.

SignedDistanceTo(GeoTriangle2, GeoPoint2, Tolerance)

Gets the distance from a triangle to a point, negative for a point within it, within a tolerance.

TryExtendTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2)

Extends a segment at one end to where it meets the edges of a triangle, using the default tolerance.

TryExtendTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2, Tolerance)

Extends a segment at one end to where it meets the edges of a triangle, within a tolerance.

TryTrimTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2)

Trims a segment at one end to where it meets the edges of a triangle, using the default tolerance.

TryTrimTo(GeoLine2, GeoTriangle2, LineEnd, out GeoLine2, Tolerance)

Trims a segment at one end to where it meets the edges of a triangle, within a tolerance.