@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function setRotX

    • Sets the elements of the 4x4 matrix m so it becomes a 3D rotation matrix.

      The resulting matrix will rotate points in the yz-plane around the x-axis when multiplied by a column vector (see mulV).

      The direction of rotation will be counterclockwise for positive values of r when the axis points towards the observer

      Parameters

      • m: Mat4

        a 4x4 matrix object

      • r: number

        the rotation as an angle in radians

      Returns Mat4

      m set to be a 3D rotation matrix