canvas's arc method has the following syntax:
void ctx.arc(x, y, radius, startAngle, endAngle, anticlockwise);
I was just playing around with this example HERE.
and I just changed the startAngle to be (MATH.PI * 2 )
. Usually people use 0
for that parameter , so what difference does it make whether I use 0
or MATH.PI * 2
? Can anybody explain ?
var normalizedAngle = (anyAngle+720) % 360
or like this to normalize radian angles between 0 and PI*2:var normalizedRadianAngle = (anyRadianAngle+(PI*4)) % (PI*2)