Function rotate

  • Rotates the given 4-by-4 matrix around the given axis by the given angle. (same as rotate)

    Parameters

    • m: Mat4

      The matrix.

    • axis: Vec3

      The axis about which to rotate.

    • 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.