Function setInvRot

  • 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 clockwise for positive values of r

    Parameters

    • m: Mat2

      a 2x2 matrix object

    • r: number

      the (inverse) rotation as an angle in radians

    Returns Mat2

    m set to be a 2D rotation matrix

Generated using TypeDoc