Table of Contents

Method DistanceTo

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

DistanceTo(GeoPoint2)

Calculates the shortest Euclidean distance from this rectangle to a point.

public double DistanceTo(GeoPoint2 point)

Parameters

point GeoPoint2

Returns

double

DistanceTo(GeoPolygon2)

Calculates the shortest boundary distance from this rectangle to a polygon.

public double DistanceTo(GeoPolygon2 poly)

Parameters

poly GeoPolygon2

Returns

double

DistanceTo(GeoLine2)

Calculates the shortest boundary distance from this rectangle to a line segment.

public double DistanceTo(GeoLine2 GeoLine2)

Parameters

GeoLine2 GeoLine2

Returns

double

DistanceTo(GeoCircle2)

Calculates the shortest boundary distance from this rectangle to a circle.

public double DistanceTo(GeoCircle2 circle)

Parameters

circle GeoCircle2

Returns

double

DistanceTo(GeoPolyline2)

Calculates the shortest distance from this rectangle to a polyline.

public double DistanceTo(GeoPolyline2 polyline)

Parameters

polyline GeoPolyline2

Returns

double

DistanceTo(GeoRectangle2)

Calculates the shortest boundary distance from this rectangle to another rectangle.

public double DistanceTo(GeoRectangle2 other)

Parameters

other GeoRectangle2

Returns

double

DistanceTo(GeoArc2)

Calculates the shortest distance from this rectangle to an arc.

public double DistanceTo(GeoArc2 arc)

Parameters

arc GeoArc2

Returns

double

DistanceTo(GeoArc2, Tolerance)

Calculates the shortest distance from this rectangle to an arc, within a tolerance.

public double DistanceTo(GeoArc2 arc, Tolerance tolerance)

Parameters

arc GeoArc2
tolerance Tolerance

Returns

double

DistanceTo(GeoPolygonArc2)

Calculates the shortest distance from this rectangle to a curved loop.

public double DistanceTo(GeoPolygonArc2 loop)

Parameters

loop GeoPolygonArc2

Returns

double

DistanceTo(GeoPolygonArc2, Tolerance)

Calculates the shortest distance from this rectangle to a curved loop, within a tolerance.

public double DistanceTo(GeoPolygonArc2 loop, Tolerance tolerance)

Parameters

loop GeoPolygonArc2
tolerance Tolerance

Returns

double

DistanceTo(GeoPolylineArc2)

Calculates the shortest distance from this rectangle to a curved chain.

public double DistanceTo(GeoPolylineArc2 chain)

Parameters

chain GeoPolylineArc2

Returns

double

DistanceTo(GeoPolylineArc2, Tolerance)

Calculates the shortest distance from this rectangle to a curved chain, within a tolerance.

public double DistanceTo(GeoPolylineArc2 chain, Tolerance tolerance)

Parameters

chain GeoPolylineArc2
tolerance Tolerance

Returns

double

DistanceTo(GeoEdge2)

Gets the distance from this rectangle to an edge.

public double DistanceTo(GeoEdge2 edge)

Parameters

edge GeoEdge2

Returns

double

DistanceTo(GeoTriangle2)

Gets the distance from this rectangle to a triangle.

public double DistanceTo(GeoTriangle2 triangle)

Parameters

triangle GeoTriangle2

Returns

double