Re: Matrix4x4 proposal

On 24/01/2012, at 12:46 PM, Gregg Tavares (勤) wrote:

> 
> 
> 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?

This is why I originally proposed radians. I don't feel strongly either way.

Dean

> 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)

Received on Tuesday, 24 January 2012 01:49:14 UTC