Function scale2d

scale2d(sx,sy) returns a $2 \times 2$ matrix representing nonuniform scaling by factors $s_x$, $s_y$ along $x$, $y$ axes.

  • Parameters

    • sx: Num

      horizontal scale factor

    • sy: Num

      vertical scale factor

    Returns Num[][]

    2D scaling matrix