Computes the angle arc between a start and end angle, given in radians. It properly accounts for the wrap-around values.
// Between 0-90deg in clockwise directionradianArc(0, Math.PI/2, true); // Yields: 3Pi/2 (270 deg)// In counter-clockwise directionradianArc(0, Math.PI/2, false); // Yields: Math.PI/2 (90deg) Copy
// Between 0-90deg in clockwise directionradianArc(0, Math.PI/2, true); // Yields: 3Pi/2 (270 deg)// In counter-clockwise directionradianArc(0, Math.PI/2, false); // Yields: Math.PI/2 (90deg)
See degreeArc to operate in degrees.
Orientation of angles is as follows:
90deg Pi/2 |Pi ---+--- 0180 | 3PI/2 270deg Copy
90deg Pi/2 |Pi ---+--- 0180 | 3PI/2 270deg
Start angle, in radians
End angle, in radians
Calculate in clockwise direction (default: true)
Angle of arc, in radians.
Computes the angle arc between a start and end angle, given in radians. It properly accounts for the wrap-around values.
See degreeArc to operate in degrees.
Orientation of angles is as follows: