math docs
    Preparing search index...

    Function rotate

    • Rotates a mat2 by the given angle

      Parameters

      • out: mat2.Mat2

        the receiving matrix

      • a: readonly [number, number, number, number]

        the matrix to rotate

      • rad: number

        the angle to rotate the matrix by

      Returns mat2.Mat2

      out