Table of Contents

Method GetPointAtDistance

Namespace
GeometryHelper.Core
Assembly
GeometryHelper.dll

GetPointAtDistance(GeoLine2, double)

Gets the point at an arc length measured from the start of a line segment.

public static GeoPoint2 GetPointAtDistance(GeoLine2 line, double distance)

Parameters

line GeoLine2
distance double

Returns

GeoPoint2

GetPointAtDistance(GeoCircle2, double)

Gets the point at an arc length measured along a circle from angle zero.

public static GeoPoint2 GetPointAtDistance(GeoCircle2 circle, double distance)

Parameters

circle GeoCircle2
distance double

Returns

GeoPoint2

GetPointAtDistance(GeoRectangle2, double)

Gets the point at an arc length measured along the perimeter of a rectangle.

public static GeoPoint2 GetPointAtDistance(GeoRectangle2 rect, double distance)

Parameters

rect GeoRectangle2
distance double

Returns

GeoPoint2

GetPointAtDistance(GeoPolygon2, double)

Gets the point at an arc length measured along the perimeter of a polygon.

public static GeoPoint2 GetPointAtDistance(GeoPolygon2 poly, double distance)

Parameters

poly GeoPolygon2
distance double

Returns

GeoPoint2

GetPointAtDistance(GeoPolyline2, double)

Gets the point at an arc length measured along a polyline, clamped to its endpoints.

public static GeoPoint2 GetPointAtDistance(GeoPolyline2 polyline, double distance)

Parameters

polyline GeoPolyline2
distance double

Returns

GeoPoint2

GetPointAtDistance(GeoPolylineArc2, double)

Gets the point a distance along a chain that may curve.

public static GeoPoint2 GetPointAtDistance(GeoPolylineArc2 chain, double distance)

Parameters

chain GeoPolylineArc2

The chain.

distance double

How far to walk, in drawing units; outside the chain it is clamped to the ends.

Returns

GeoPoint2

The point there.

Exceptions

ArgumentNullException

Thrown when the chain is null.

GetPointAtDistance(GeoPolygonArc2, double)

Gets the point a distance round a loop that may curve.

public static GeoPoint2 GetPointAtDistance(GeoPolygonArc2 loop, double distance)

Parameters

loop GeoPolygonArc2

The loop.

distance double

How far to walk, in drawing units; outside the loop it is clamped to the ends.

Returns

GeoPoint2

The point there.

Exceptions

ArgumentNullException

Thrown when the loop is null.