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

    Function setRot

    • Sets the elements of the 2x2 matrix m so it becomes a 2D rotation matrix.

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

      The direction of rotation will be counterclockwise for positive values of r

      Parameters

      • m: Mat2

        a 2x2 matrix object

      • r: number

        the rotation as an angle in radians

      Returns Mat2

      m set to be a 2D rotation matrix