Function setScaleV

  • Sets the elements of the 4x4 matrix m so it becomes a 3D scaling matrix.

    Multiplying the resulting matrix by a column vector will scale the given vector by a (see mulV)

    Parameters

    • m: Mat4

      a 4x4 matrix object

    • a: Vec3

      a 3-element vector specifying the scaling factors

    Returns Mat4

    m set to be a 3D scaling matrix

Generated using TypeDoc