Function axisRotate

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

    Type Parameters

    Parameters

    • m: BaseArgType

      The matrix.

    • axis: BaseArgType

      The axis about which to rotate.

    • angleInRadians: number

      The angle by which to rotate (in radians).

    • Optional dst: T

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

    Returns T

    The rotated matrix.