Table of Contents

Method GetShortestLineTo

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetShortestLineTo(GeoFace2, GeoPoint2)

Gets the shortest segment leaving the boundary of a face and landing on a point.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPoint2 point)

Parameters

face GeoFace2
point GeoPoint2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPoint2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a point, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPoint2 point, Tolerance tolerance)

Parameters

face GeoFace2
point GeoPoint2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoLine2)

Gets the shortest segment leaving the boundary of a face and landing on a segment.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoLine2 line)

Parameters

face GeoFace2
line GeoLine2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoLine2, Tolerance)

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

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoLine2 line, Tolerance tolerance)

Parameters

face GeoFace2
line GeoLine2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoArc2)

Gets the shortest segment leaving the boundary of a face and landing on a arc.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoArc2 arc)

Parameters

face GeoFace2
arc GeoArc2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoArc2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a arc, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoArc2 arc, Tolerance tolerance)

Parameters

face GeoFace2
arc GeoArc2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoCircle2)

Gets the shortest segment leaving the boundary of a face and landing on a circle.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoCircle2 circle)

Parameters

face GeoFace2
circle GeoCircle2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoCircle2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a circle, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoCircle2 circle, Tolerance tolerance)

Parameters

face GeoFace2
circle GeoCircle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoRectangle2)

Gets the shortest segment leaving the boundary of a face and landing on a rectangle.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoRectangle2 rect)

Parameters

face GeoFace2
rect GeoRectangle2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoRectangle2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a rectangle, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoRectangle2 rect, Tolerance tolerance)

Parameters

face GeoFace2
rect GeoRectangle2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolyline2)

Gets the shortest segment leaving the boundary of a face and landing on a polyline.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolyline2 polyline)

Parameters

face GeoFace2
polyline GeoPolyline2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolyline2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a polyline, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolyline2 polyline, Tolerance tolerance)

Parameters

face GeoFace2
polyline GeoPolyline2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolygon2)

Gets the shortest segment leaving the boundary of a face and landing on a polygon.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolygon2 polygon)

Parameters

face GeoFace2
polygon GeoPolygon2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolygon2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a polygon, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolygon2 polygon, Tolerance tolerance)

Parameters

face GeoFace2
polygon GeoPolygon2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolygonArc2)

Gets the shortest segment leaving the boundary of a face and landing on a curved loop.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolygonArc2 loop)

Parameters

face GeoFace2
loop GeoPolygonArc2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolygonArc2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a curved loop, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

face GeoFace2
loop GeoPolygonArc2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolylineArc2)

Gets the shortest segment leaving the boundary of a face and landing on a curved chain.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolylineArc2 chain)

Parameters

face GeoFace2
chain GeoPolylineArc2

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoPolylineArc2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a curved chain, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

face GeoFace2
chain GeoPolylineArc2
tolerance Tolerance

Returns

GeoLine2

GetShortestLineTo(GeoFace2, GeoFace2)

Gets the shortest segment leaving the boundary of a face and landing on the boundary of another.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoFace2 other)

Parameters

face GeoFace2
other GeoFace2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when either face is null.

GetShortestLineTo(GeoFace2, GeoFace2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on the boundary of another, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoFace2 other, Tolerance tolerance)

Parameters

face GeoFace2

The face the answer leaves.

other GeoFace2

The face the answer lands on.

tolerance Tolerance

The tolerance.

Returns

GeoLine2

The shortest of the segments joining each loop of face, its outline and then each hole, to each loop of other in the same order, the first such pair winning a tie. Like every shortest line here it runs boundary to boundary, so it has a length even where the materials overlap. From the square 100 by 100 with a corner at the origin and a hole 40 by 40 in its middle, the square 20 by 20 about (45, 50) is reached from the rim of the hole across the gap of 5 on its left.

Exceptions

ArgumentNullException

Thrown when either face is null.

GetShortestLineTo(GeoFace2, GeoRay2)

Gets the shortest segment leaving the boundary of a face and landing on a ray.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoRay2 ray)

Parameters

face GeoFace2
ray GeoRay2

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the face is null.

GetShortestLineTo(GeoFace2, GeoRay2, Tolerance)

Gets the shortest segment leaving the boundary of a face and landing on a ray, within a tolerance.

public static GeoLine2 GetShortestLineTo(GeoFace2 face, GeoRay2 ray, Tolerance tolerance)

Parameters

face GeoFace2
ray GeoRay2
tolerance Tolerance

Returns

GeoLine2

Exceptions

ArgumentNullException

Thrown when the face is null.