Table of Contents

Constructor GeoArc2

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

GeoArc2(GeoPoint2, double, double, double)

Initializes an arc running counter-clockwise from one angle to another.

public GeoArc2(GeoPoint2 center, double radius, double startAngle, double endAngle)

Parameters

center GeoPoint2

The centre of the circle the arc lies on.

radius double

The radius; it must be positive.

startAngle double

The angle the arc starts at, in radians.

endAngle double

The angle the arc ends at, in radians. Equal angles mean a whole turn.

Exceptions

ArgumentOutOfRangeException

Thrown when the radius is not a positive number, or an angle is not a number.

GeoArc2(GeoPoint2, double, double, double, bool)

Initializes an arc running from one angle to another, either way round.

public GeoArc2(GeoPoint2 center, double radius, double startAngle, double endAngle, bool clockwise)

Parameters

center GeoPoint2

The centre of the circle the arc lies on.

radius double

The radius; it must be positive.

startAngle double

The angle the arc starts at, in radians.

endAngle double

The angle the arc ends at, in radians. Equal angles mean a whole turn.

clockwise bool

true to sweep clockwise from the start angle; false to sweep counter-clockwise.

Exceptions

ArgumentOutOfRangeException

Thrown when the radius is not a positive number, or an angle is not a number.