Function makeMatrix4Rotate

  • Parameters

    • angle: number

      the angle of rotation in radians

    • Optional vector: [number, number, number] = ...

      the axis of rotation

    • Optional origin: [number, number, number] = ...

      the center of rotation

    Returns number[]

    one 4x4 matrix

    Description

    make a 4x4 matrix representing a rotation in 3D around a given vector and around a given center of rotation.