Get the measure of an arc.

function getArcMeasure(
  A: number,
  B: number,
  sweepFlag: number,
  largeArcFlag: number
): number
Parameters
NameDescription

A

number

The angle from center to arc's start point (A) on the circle

B

number

The angle from center to arc's end point (B) on the circle

sweepFlag

number

1 if the arc is clockwise, 0 if counter-clockwise

largeArcFlag

number

1 if the arc is greater than 180 degrees, 0 if less than 180 degrees

Returns
number

The measure of the arc, negative if counter-clockwise

ErrorScreengetCursor