lookat
LookAt is a common function in 3D graphics used to create a view matrix that positions and orients a camera so that it looks at a specified target point. Given the camera position (eye), a center or target point (center), and an up direction (up), lookAt returns a 4x4 matrix that transforms world coordinates into camera (view) space, enabling rendering from the camera’s perspective.
The typical construction computes three orthogonal axes: forward, right, and true up. Let f be the normalized
Conventions differ across systems. OpenGL-style pipelines typically use a right-handed system with the camera looking toward
Notes and pitfalls: eye and center must not coincide; up should not be parallel to the viewing