Function rotateZ

  • Rotates the given 4-by-4 matrix around the z-axis by the given angle.

    Parameters

    • m: Mat4

      The matrix.

    • angleInRadians: number

      The angle by which to rotate (in radians).

    • Optional dst: Mat4

      matrix to hold result. If not passed a new one is created.

    Returns Mat4

    The rotated matrix.