W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2012

Re: Matrix4x4 proposal

From: (wrong string) 勤 <gman@google.com>
Date: Mon, 23 Jan 2012 17:46:35 -0800
Message-ID: <CAKZ+BNqB_NsC=nZcF6nFNEKeOUo2gAveZPJdmDbcFrkOF4ooQA@mail.gmail.com>
To: Dean Jackson <dino@apple.com>
Cc: Kristian Sons <kristian.sons@dfki.de>, public-fx@w3.org
On Mon, Jan 23, 2012 at 3:57 PM, Dean Jackson <dino@apple.com> wrote:

> On 20/01/2012, at 11:03 PM, Kristian Sons wrote:
> > Hi,
> >
> >> // The value of angle is in radians.
> >>     void rotateAxisAngle(in double x,
> >>                          in double y,
> >>                          in double z,
> >>                          in double angle);
> >
> > I didn't follow the discussion from the beginning, so this might be
> already discussed:
> > In the CSSMatrix proposal, all angles are in degrees. Also SVG uses
> degrees in interfaces. Do you want to change to radians?
> We agreed to stick with degrees. I need to post an updated proposal.

Really? Are angles expected to be in degrees by devs who will actually use
these classes? I ask because it seems silly to take the dot product of 2
vectors and have to convert to degress before I can use the answer. I'm
sure people better at math can name a bunch of other cases.  How about 2
functions, rotateAxisAngleDegress and rotateAxixAngleRadians. I suppose
with either one you can write a quick wrapper to produce the other, it just
seems wrong to pick the less efficient one when the whole point of this API
is speed (otherwise just do everything in JS)

> Dean
Received on Tuesday, 24 January 2012 01:47:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 24 January 2012 01:47:12 GMT