Function makeLookAtMatrix4

  • Parameters

    • position: [number, number, number]

      the location of the camera in 3D space

    • target: [number, number, number]

      the point in space the camera is looking towards

    • up: [number, number, number]

      the vector pointing up out the top of the camera.

    Returns number[]

    one 4x4 matrix