Method GetShortestLineTo
- Namespace
- GeometryHelper.Core
- Assembly
- GeometryHelper.dll
GetShortestLineTo(GeoTriangle2, GeoPoint2)
Gets the shortest segment leaving the edges of a triangle and landing on a point, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPoint2 point)
Parameters
triangleGeoTriangle2pointGeoPoint2
Returns
GetShortestLineTo(GeoTriangle2, GeoPoint2, Tolerance)
Gets the shortest segment leaving the edges of a triangle and landing on a point.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPoint2 point, Tolerance tolerance)
Parameters
triangleGeoTriangle2The triangle.
pointGeoPoint2The point.
toleranceToleranceThe tolerance, passed to the projection onto the triangle only where its corners coincide and it is a segment. It is read by its own sides however thin and however short, so that they are projected on as the sides they are: a sliver 100 long and 0.5 high gives the point 1 past its tip the segment from its short side at any tolerance. Only corners that coincide exactly make it a segment.
Returns
- GeoLine2
A segment from the nearest point of the edges to
point, the point GetClosestPointOnBoundary(GeoTriangle2, GeoPoint2) gives under the default tolerance. It runs from the edges, so a point inside is carried out to the nearest edge and the segment is as long as the depth to it, where DistanceTo(GeoTriangle2, GeoPoint2) reads the triangle as filled and answers nought. Outside the tolerance, it is as long as that distance; on an edge it has no length.
GetShortestLineTo(GeoTriangle2, GeoLine2)
Gets the shortest segment leaving a triangle and landing on a segment, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoLine2 line)
Parameters
triangleGeoTriangle2lineGeoLine2
Returns
GetShortestLineTo(GeoTriangle2, GeoLine2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a segment, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoLine2 line, Tolerance tolerance)
Parameters
triangleGeoTriangle2lineGeoLine2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoCircle2)
Gets the shortest segment leaving a triangle and landing on a circle, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoCircle2 circle)
Parameters
triangleGeoTriangle2circleGeoCircle2
Returns
GetShortestLineTo(GeoTriangle2, GeoCircle2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a circle, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoCircle2 circle, Tolerance tolerance)
Parameters
triangleGeoTriangle2circleGeoCircle2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoRectangle2)
Gets the shortest segment leaving a triangle and landing on a rectangle, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoRectangle2 rect)
Parameters
triangleGeoTriangle2rectGeoRectangle2
Returns
GetShortestLineTo(GeoTriangle2, GeoRectangle2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a rectangle, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoRectangle2 rect, Tolerance tolerance)
Parameters
triangleGeoTriangle2rectGeoRectangle2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoPolyline2)
Gets the shortest segment leaving a triangle and landing on a polyline, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolyline2 polyline)
Parameters
triangleGeoTriangle2polylineGeoPolyline2
Returns
GetShortestLineTo(GeoTriangle2, GeoPolyline2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a polyline, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolyline2 polyline, Tolerance tolerance)
Parameters
triangleGeoTriangle2polylineGeoPolyline2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoPolygon2)
Gets the shortest segment leaving a triangle and landing on a polygon, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolygon2 polygon)
Parameters
triangleGeoTriangle2polygonGeoPolygon2
Returns
GetShortestLineTo(GeoTriangle2, GeoPolygon2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a polygon, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolygon2 polygon, Tolerance tolerance)
Parameters
triangleGeoTriangle2polygonGeoPolygon2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoArc2)
Gets the shortest segment leaving a triangle and landing on an arc, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoArc2 arc)
Parameters
triangleGeoTriangle2arcGeoArc2
Returns
GetShortestLineTo(GeoTriangle2, GeoArc2, Tolerance)
Gets the shortest segment leaving a triangle and landing on an arc, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoArc2 arc, Tolerance tolerance)
Parameters
triangleGeoTriangle2arcGeoArc2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoPolygonArc2)
Gets the shortest segment leaving a triangle and landing on a curved loop, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolygonArc2 loop)
Parameters
triangleGeoTriangle2loopGeoPolygonArc2
Returns
GetShortestLineTo(GeoTriangle2, GeoPolygonArc2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a curved loop, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolygonArc2 loop, Tolerance tolerance)
Parameters
triangleGeoTriangle2loopGeoPolygonArc2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoPolylineArc2)
Gets the shortest segment leaving a triangle and landing on a curved chain, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolylineArc2 chain)
Parameters
triangleGeoTriangle2chainGeoPolylineArc2
Returns
GetShortestLineTo(GeoTriangle2, GeoPolylineArc2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a curved chain, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoPolylineArc2 chain, Tolerance tolerance)
Parameters
triangleGeoTriangle2chainGeoPolylineArc2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoFace2)
Gets the shortest segment leaving a triangle and landing on a face, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoFace2 face)
Parameters
triangleGeoTriangle2faceGeoFace2
Returns
GetShortestLineTo(GeoTriangle2, GeoFace2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a face, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoFace2 face, Tolerance tolerance)
Parameters
triangleGeoTriangle2faceGeoFace2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoEdge2)
Gets the shortest segment leaving a triangle and landing on an edge, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoEdge2 edge)
Parameters
triangleGeoTriangle2edgeGeoEdge2
Returns
GetShortestLineTo(GeoTriangle2, GeoEdge2, Tolerance)
Gets the shortest segment leaving a triangle and landing on an edge, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoEdge2 edge, Tolerance tolerance)
Parameters
triangleGeoTriangle2edgeGeoEdge2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoTriangle2)
Gets the shortest segment leaving a triangle and landing on another triangle, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoTriangle2 other)
Parameters
triangleGeoTriangle2otherGeoTriangle2
Returns
GetShortestLineTo(GeoTriangle2, GeoTriangle2, Tolerance)
Gets the shortest segment leaving a triangle and landing on another triangle, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoTriangle2 other, Tolerance tolerance)
Parameters
triangleGeoTriangle2otherGeoTriangle2toleranceTolerance
Returns
GetShortestLineTo(GeoTriangle2, GeoRay2)
Gets the shortest segment leaving a triangle and landing on a ray, using the default tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoRay2 ray)
Parameters
triangleGeoTriangle2rayGeoRay2
Returns
GetShortestLineTo(GeoTriangle2, GeoRay2, Tolerance)
Gets the shortest segment leaving a triangle and landing on a ray, within a tolerance.
public static GeoLine2 GetShortestLineTo(GeoTriangle2 triangle, GeoRay2 ray, Tolerance tolerance)
Parameters
triangleGeoTriangle2rayGeoRay2toleranceTolerance