Method FromBulge
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
FromBulge(GeoPoint2, GeoPoint2, double)
Creates the arc between two points with a given bulge, the number AutoCAD stores per vertex.
public static GeoArc2 FromBulge(GeoPoint2 start, GeoPoint2 end, double bulge)
Parameters
startGeoPoint2Where the arc starts.
endGeoPoint2Where the arc ends.
bulgedoubleThe tangent of a quarter of the angle the arc sweeps: positive counter-clockwise, negative clockwise.
Returns
- GeoArc2
The arc from the start to the end.
Remarks
A bulge of one is a half turn, and the sign says which way it goes. A bulge of zero would be a straight segment rather than an arc, which is why it is refused here: a chain stores that as an edge with no bulge instead.
Exceptions
- ArgumentOutOfRangeException
Thrown when the bulge is zero or not a number.
- InvalidOperationException
Thrown when the two points are the same, so there is no chord to bulge.