Function lookAt

lookAt(eye, center, up) returns a $4 \times 4$ viewing matrix derived from an eye point $e$, a reference point $c$ indicating the center of the scene, and an up vector $u$.

  • Parameters

    • eye: VecN

      position of the eye point

    • center: VecN

      position of the reference point

    • up: VecN

      unit vector in the upward direction

    Returns Num[][]

    Look-at matrix