MutableAffine.cssTransform constructor

MutableAffine.cssTransform(
  1. List<double> css
)

Create an affine matrix representing a transformation matrix as described in CSS's format, which consists of six float values. See the matrix transform in s. 7.6.1 of https://www.w3.org/TR/SVGTiny12/coords.html#TransformAttribute .

Implementation

MutableAffine.cssTransform(List<double> css)
    : _storage = Matrix3.zero(),
      super._p() {
  // s. 7.5 https://www.w3.org/TR/SVGTiny12/coords.html
  set(0, 0, css[0]);
  set(1, 0, css[1]);
  set(0, 1, css[2]);
  set(1, 1, css[3]);
  set(0, 2, css[4]);
  set(1, 2, css[5]);
  set(2, 2, 1);
}