W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] [canvas] rotate.

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 18 May 2006 21:11:06 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0605182108210.21459@dhalsim.dreamhost.com>
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.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 18 May 2006 14:11:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC