• Returns a 3x3 scaling matrix based on the given vector.

    Parameters

    • v: Vec3

      The scaling vector (x, y).

    • m: Mat3 = ...

      The matrix to store the result. Defaults to the identity matrix.

    Returns Mat3

    The resulting 3x3 scaling matrix.