Open SheetJSDev opened 4 years ago
You're correct atan2 would be the better option here, because I don't check for the denominator to be nonzero.
I think I have been getting away with it because it is unlikely in zigzag lines, and the randomness in the dashed lines.
Both dashed and zigzag use
Math.atan
:It would seem that a generated vertical line would cause errors. Is there a reason for preferring this over the safer
atan2
alternative?