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
startGeoPoint2Where the arc starts.
middleGeoPoint2A point the arc passes through between its ends.
endGeoPoint2Where 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
startGeoPoint2Where the arc starts.
middleGeoPoint2A point the arc passes through between its ends.
endGeoPoint2Where the arc ends.
toleranceToleranceThe 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.