angleDistance
See source codeGet the angle of a point on an arc.
function angleDistance(
  fromAngle: number,
  toAngle: number,
  direction: number
): number
Parameters
| Name | Description | 
|---|---|
  | The angle from center to arc's start point (A) on the circle  | 
  | The angle from center to arc's end point (B) on the circle  | 
  | The direction of the arc (1 = counter-clockwise, -1 = clockwise)  | 
Returns
number
The distance in radians between the two angles according to the direction
Next
approximately