mat4LookAt
mat4LookAt(
eye,target,up?):Mat4
Defined in: src/modules/math/mat4.ts:220
The view matrix of a camera at eye looking at target — world to camera
space, with the camera’s -Z toward target and +Y as close to up as the
view direction allows (gl-matrix lookAt; three.js Matrix4.lookAt returns
only the rotation, the other way round).
eye === target has no view direction and yields the identity. An up
parallel to the view direction falls back to world +Z, then +X.
Parameters
Section titled “Parameters”target
Section titled “target”Vec3 = ...