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

quick comments on Matrix

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 14 Mar 2013 15:06:13 +1300
Message-ID: <CAOp6jLZ9FQnui1sLRwhkjX452=aGKeNrwr5i-0pr3EhHW_w2Nw@mail.gmail.com>
To: public-fx@w3.org
https://dvcs.w3.org/hg/FXTF/raw-file/default/matrix/index.html

In the array/sequence Matrix constructors, what happens if the length of
the array/sequence is not 6 or 16?

In the string constructor, what happens if the string is not valid?

Why don't you add the default parameters for Matrix methods such as scaleBy
to the WebIDL directly?

In rotateFromVector(By), what happens if the x or y coordinate is zero?
Actually it's not clear to me why these can't be zero.

I assume toFloat32/64Array always return a 16-element array but this should
be stated.

What's the rationale for using double for matrix elements? Are
implementations allowed to use 32-bit precision internally?

Rob
-- 
Wrfhf pnyyrq gurz gbtrgure naq fnvq, “Lbh xabj gung gur ehyref bs gur
Tragvyrf ybeq vg bire gurz, naq gurve uvtu bssvpvnyf rkrepvfr nhgubevgl
bire gurz. Abg fb jvgu lbh. Vafgrnq, jubrire jnagf gb orpbzr terng nzbat
lbh zhfg or lbhe freinag, naq jubrire jnagf gb or svefg zhfg or lbhe fynir
— whfg nf gur Fba bs Zna qvq abg pbzr gb or freirq, ohg gb freir, naq gb
tvir uvf yvsr nf n enafbz sbe znal.” [Znggurj 20:25-28]
Received on Thursday, 14 March 2013 02:06:42 GMT

This archive was generated by hypermail 2.3.1 : Thursday, 14 March 2013 02:06:43 GMT