Re: Transformations with units

Hi Tanguy,

there were many discussion on this on the www-style mailing list.
At the last CSS face-to-face, everyone agree to drop the units on the tx/ty
part in a matrix.
You can find the discussion here:
http://lists.w3.org/Archives/Public/www-style/2012Feb/0550.html

Rik

On Fri, Mar 2, 2012 at 11:21 AM, Tanguy Ortolo <tanguy+svg@ortolo.eu> wrote:

> Hello,
>
> According to the current recommentation, transformations can only be
> defined with numbers. While this can seem a logical constraint since
> transformations are matrices, which are multiplicated with lenghts, the
> reality is a bit more subtle:
>
>    [ x']   [ a c e ]   [ x ]
>    [ y'] = [ b d f ] ⋅ [ y ]
>    [ 1 ]   [ 0 0 1 ]   [ 1 ]
>
> Here, x, y, x' and y' are homogeous to lengths, but because 1 is
> adimensional, not all coefficients of the transformation matrix are.
> Indeed, e and f are multiplicated with the adimensional number 1 to make
> lengths. Thus, e and f are homogeneous to lengths.
>
> These coefficients appear only in one simple transformation, the
> translation. This is quite intuitive since a translation is basically
> defined by a length vector.
>
> Now, when drawing lengths in a natural unit distinct from the pixel, it
> is very inconvenient to translate these units to pixels just for
> translations. So, do you think not that it would be appropriate to
> modify the recommendation to indicate that coefficients e and f for
> matrices, and tx and ty for translations, are lengths and not numbers?
>
> Regards,
>
> --
> Tanguy Ortolo
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iQIcBAEBCgAGBQJPUR2uAAoJEOryzVHFAGgZtm4P/iVCe25gVHlUeETDQ/hhirnl
> LxWbQ4jTzdc0DRKwbmH7/k/ny/hRpG6xN4z0c891eTswEB01+nU/b1YnT/ZihZo7
> vUeHkcHyjhj5QPDUlHa41Fd+v1IJgwC17bE+01fGYSlM9KmOBfcqclf1jOge+vRz
> bDTijmmIBmXo3kw9EamaQ0rodFZP/T9doRyGl/+v+hVnNpyUKwqQqXMmhBrwM9cI
> Tay/MvM6CrQGmbM4avlNH0fKRgQxypKW54wIsmQ1i+v5cWkEAsXhENI/v3bfTmjt
> LDjq3mdREAXRqBFJ3gZiy/HzeHU9kMzMMSjB32qPqnWWDg6N/XI9ezu5ctzAYOrO
> i8v5Xx5Ci8i1OfQ0SPDZvmQ2LxSPZLvgPQMRbbjQ4rzJaYWtKOp8RXyKpgB20m9z
> /8O5L8wbYUwhSbU3Oc1OxF4PMhMT2pl0LACxr5ZN9DWrVB8lA7utSIWFULt+fgDl
> j6FAbLXulzSYHb20U192oScAaR2uPmdBCILUDjcGPiCvBbVhHBkEaq+yyj0mmN1b
> +5KI2wnOFpbZ3nr7iVo7VK1iNMZ5+yqlmjNoM4bitWasvDySQ8ihdScAuwIDNub/
> BQI8hVz6OAXNQMmpvv/rSo62HKgUGJXwjvI9b5W77urdoogFDIss8Z4xz/h5Vp3n
> rOVgHLCOzI6HS3QgB0We
> =f7/b
> -----END PGP SIGNATURE-----
>
>

Received on Saturday, 3 March 2012 00:22:55 UTC