Function scale3dh

scale3dh(sx, sy, sz) returns a $4 \times 4$ matrix representing nonuniform scaling by factors $s_x$, $s_y$, $s_z$ along $x$, $y$, $z$ axes.

  • Parameters

    • sx: Num

      x scale factor

    • sy: Num

      y scale factor

    • sz: Num

      z scale factor

    Returns Num[][]

    3D scaling matrix in homogeneous coordinates