W3C home > Mailing lists > Public > www-svg@w3.org > June 2004

Re: SVGTransform and SVGMatrix

From: Kevin Lindsey <kevin@kevlindev.com>
Date: Fri, 11 Jun 2004 13:14:14 -0500
Message-ID: <016701c44fdf$ed164ee0$6102a8c0@monkey>
To: <www-svg@w3.org>

Jonathan,

> I'm looking for some clarification on:
>
> a) whether SVGMatrix is intended to be immutable

The SVGMatrix attributes are mutable

> b) why there is a setMatrix function for SVGTransform when its matrix
>     attribute is readonly
>
> What is the intention of the specification?

FWIW, I look at it this way. SVGTransform has a matrix attribute of type
SVGMatrix. That attribute cannot be altered, which means that you cannot
assign an SVGMatrix to the matrix attribute. However, an SVGMatrix is a
compound type with attributes that are mutable. So, you can alter the
attributes of the matrix attribute. setMatrix is a convenience function so
you don't have to write out 6 individual assignments to set the attributes
of the matrix attribute.

Kevin
Received on Friday, 11 June 2004 14:15:11 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:27 GMT