Table of Contents

Enum ArcDirection

Namespace
Thunder.UnitsNET.Vectors.Geometry
Assembly
Thunder.UnitsNET.Vectors.Geometry.dll

Specifies the direction in which an arc sweeps around its circle.

In standard 2D mathematical convention, counter-clockwise is the positive direction (increasing angle from the positive X-axis). Clockwise is the negative direction.

// A counter-clockwise arc sweeps from East (0°) toward North (90°)
var arc = new Arc2(circle, Direction2.East, Angle.FromDegrees(90)); // CCW because angle > 0

// A clockwise arc sweeps from East (0°) toward South (270°, or −90° signed) var cw = new Arc2(circle, Direction2.East, Angle.FromDegrees(-90)); // CW because angle < 0

public enum ArcDirection

Fields

Clockwise = 0

The arc sweeps in the clockwise direction (decreasing angle; negative sweep).

CounterClockwise = 1

The arc sweeps in the counter-clockwise direction (increasing angle; positive sweep). This is the standard positive direction in mathematics.

v0.4.0 ▼