Function matrix

matrix(a,b,c,d,e,f) specifies a transformation matrix $$\left[ \begin{array}{ccc} a & c & e \ b & d & f \ 0 & 0 & 1 \end{array} \right].$$ This function mirrors the SVG/CSS matrix transform function.

  • Parameters

    • a: Num

      top left entry

    • b: Num

      middle left entry

    • c: Num

      top center entry

    • d: Num

      middle center entry

    • e: Num

      top right entry

    • f: Num

      middle right entry

    Returns Num[][]

    Transformation matrix