RE: comments on Matrix

Yeah.
Internal operations can also check this flag and only operate on the 2D
components. (ie Invert)

From: Tab Atkins Jr.
Sent: 3/20/2013 4:48 PM
To: Rik Cabanier
Cc: Benoit Jacob; public-fx@w3.org
Subject: Re: comments on Matrix
On Wed, Mar 20, 2013 at 4:44 PM, Rik Cabanier <cabanier@gmail.com> wrote:
> Maybe the 2D'ness of a matrix can be implied by its construction and if you
> apply 2d or 3d matrices or operations to it?

I suspect this would be reasonable.  You'd check for explicit 0s in
the correct indexes at construction time, and then carry around a flag
for whether it's 2d or not, which gets unset as soon as you perform a
3d operation.

~TJ

Received on Thursday, 21 March 2013 00:06:00 UTC