Function matrix3d

matrix3d(a1, a2, a3, a4, b1, b2, b3, b4, c1, c2, c3, c4, d1, d2, d3, d4) specifies a transformation matrix $$\left[ \begin{array}{cccc} a1 & a2 & a3 & a4 \ b1 & b2 & b3 & b4 \ c1 & c2 & c3 & c4 \ d1 & d2 & d3 & d4 \end{array} \right].$$ This function mirrors the CSS matrix3d transform function.

  • Parameters

    • a1: Num

      1st column of 1st row

    • b1: Num

      1st column of 2nd row

    • c1: Num

      1st column of 3rd row

    • d1: Num

      1st column of 4th row

    • a2: Num

      2nd column of 1st row

    • b2: Num

      2nd column of 2nd row

    • c2: Num

      2nd column of 3rd row

    • d2: Num

      2nd column of 4th row

    • a3: Num

      3rd column of 1st row

    • b3: Num

      3rd column of 2nd row

    • c3: Num

      3rd column of 3rd row

    • d3: Num

      3rd column of 4th row

    • a4: Num

      4th column of 1st row

    • b4: Num

      4th column of 2nd row

    • c4: Num

      4th column of 3rd row

    • d4: Num

      4th column of 4th row

    Returns Num[][]

    3D transformation matrix