Function scale

scale(sx, sy) returns a 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[][]

    Scaling matrix