Function fromRotation

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

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

    Parameters

    • out: mat3

      mat3 receiving operation result

    • rad: number

      the angle to rotate the matrix by

    Returns mat3

    out

Generated using TypeDoc