Table of Contents

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

start GeoPoint2

Where the arc starts.

end GeoPoint2

Where the arc ends.

bulge double

The 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.