math docs
    Preparing search index...

    Function rotate

    • Rotates a mat4 by the given angle around the given axis

      Parameters

      • out: mat4.Mat4

        the receiving matrix

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

        the matrix to rotate

      • rad: number

        the angle to rotate the matrix by

      • axis: readonly [number, number, number]

        the axis to rotate around

      Returns mat4.Mat4 | null

      out