W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: API for matrix manipulation

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Tue, 15 Mar 2011 01:54:48 -0000
To: "public-webapps@w3.org" <public-webapps@w3.org>
Message-ID: <op.vsc3llaajz3wb9@coruscant>

>> Comments or is something already being worked on ?
>
> There are already 2 such classes: SVGMatrix and CSSMatrix. The former is an affine transformation matrix (commonly misnamed a "2x3 matrix") and the latter is a 3D homogeneous transformation matrix (commonly correctly named a "4x4 matrix").
>

Are those classes in their current implementations thread-safe ? Could a Web Worker easily do matrix calculations with them ? I would guess a basic physics engine in a worker would be a nice use case.

And what about making something that is generic enough for both SVG and CSS, or even full blown algebra ? And then specify bindings of implicit conversions from those DOM classes into a basic ES matrix (if you would like to call it that) ?
Received on Tuesday, 15 March 2011 01:55:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:43 GMT