• Creates a matrix from a given angle This is equivalent to (but much faster than):

    mat2d.identity(dest);
    mat2d.rotate(dest, dest, rad);

    Parameters

    • out: mat2d

      mat2d receiving operation result

    • rad: number

      the angle to rotate the matrix by

    Returns mat2d

    out

Generated using TypeDoc