[whatwg] [canvas] rotate.

Ian Hickson ian at hixie.ch
Thu May 18 14:11:06 PDT 2006

On Thu, 18 May 2006, Andrew Fedoniouk wrote:
> Coordinate system of the <canvas> is x-axis : top-to-bottom and y-axis 
> is left-to-right. Let's say we have some vector of the length 1 and 
> angle 0. How it is located in respect of the axis?

The canvas API doesn't have vectors. The only two functions that take 
angles are (a) the arc() method, whose definition defines its 
interpretation as radians clockwise from the positive x-axis, and (b) the 
rotate() method, whose definition again defines its interpretation as 
radians clockwise.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

More information about the whatwg mailing list