Sum angles together, accounting for the 'wrap around'.
clockwise of true (default) means angles are added in clockwise direction
clockwise
// From 180deg, add 90deg in the clockwise directionradiansSum(Math.PI, Math.PI/2, true); Copy
// From 180deg, add 90deg in the clockwise directionradiansSum(Math.PI, Math.PI/2, true);
Orientation of angles is as follows:
90deg Pi/2 |Pi ---+--- 0180 | 3PI/2 270deg Copy
90deg Pi/2 |Pi ---+--- 0180 | 3PI/2 270deg
degreesSum is the same, but uses degrees (0..360)
Starting angle, in radian
Angle to add, in radian
Add in clockwise direction (default: true)
Sum result, in radians
Sum angles together, accounting for the 'wrap around'.
clockwise
of true (default) means angles are added in clockwise directionOrientation of angles is as follows:
degreesSum is the same, but uses degrees (0..360)