4D-SVG

SVG_SET_TRANSFORM_MATRIX

SVG_SET_TRANSFORM_MATRIX ( svgObject ; a ; b {; c ; d {; e ; f}} )

Parameter Type   Description
svgObject SVG_Ref Reference of SVG element
a Longint Element a of transform matrix
b Longint Element b of transform matrix
c Longint Element c of transform matrix
d Longint Element d of transform matrix
e Longint Element e of transform matrix
f Longint Element f of transform matrix

Description

The SVG_SET_TRANSFORM_MATRIX command applies a matrix transformation to the SVG object having the svgObject reference.

This type of transformation can be used to combine transformations like, for example, a rotation and a translation.

Example

 SVG_SET_TRANSFORM_MATRIX($ID;0,707;-0,707;0,707;0,707;255,03;111,21)
  //Is equivalent to applying the 3 following transformations:
 SVG_SET_TRANSFORM_TRANSLATE($ID;50;90)
 SVG_SET_TRANSFORM_ROTATE($ID;-45)
 SVG_SET_TRANSFORM_TRANSLATE($ID;130;160)

See also

SVG_SET_TRANSFORM_ROTATE