arc and arcto methods

i was thinking of adding some arc drawing methods to a program i'm writing, and i thought it would be nice to have the same API as the html canvas methods, so i looked at http://www.w3.org/TR/2dcontext/


arcTo is defined without parameters that are the point its going to, and arc is defined with parameters that are the point its going to.

this is just backward.

also, i would say for least surprise, have all the ???To methods have the parameters of the point going too, first.

and, the definition of arcTo often results in sharp points, if it was defined to use the 'smoothly joining arc' rather than the 'shortest arc' more useful output would more often result. 

Received on Friday, 10 July 2015 09:25:15 UTC