Table of Contents

Method FromThreePoints

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

FromThreePoints(GeoPoint2, GeoPoint2, GeoPoint2)

Creates the arc through three points, using the default tolerance.

public static GeoArc2 FromThreePoints(GeoPoint2 start, GeoPoint2 middle, GeoPoint2 end)

Parameters

start GeoPoint2

Where the arc starts.

middle GeoPoint2

A point the arc passes through between its ends.

end GeoPoint2

Where the arc ends.

Returns

GeoArc2

The arc from the start through the middle to the end.

Exceptions

InvalidOperationException

Thrown when the three points share a line, so no circle passes through them.

FromThreePoints(GeoPoint2, GeoPoint2, GeoPoint2, Tolerance)

Creates the arc through three points, within a tolerance.

public static GeoArc2 FromThreePoints(GeoPoint2 start, GeoPoint2 middle, GeoPoint2 end, Tolerance tolerance)

Parameters

start GeoPoint2

Where the arc starts.

middle GeoPoint2

A point the arc passes through between its ends.

end GeoPoint2

Where the arc ends.

tolerance Tolerance

The tolerance.

Returns

GeoArc2

The arc from the start through the middle to the end.

Remarks

Which way the arc turns follows the middle point: it sweeps the way that passes through it, so swapping the start and the end reverses the arc rather than giving the other part of the circle.

Exceptions

InvalidOperationException

Thrown when the three points share a line, so no circle passes through them.