The position of the camera in world space (x, y, z).
The target position the camera is looking at in world space (x, y, z).
The up vector of the camera in world space (x, y, z).
Optional
dest: FloatArrayParamAn optional destination matrix to store the result. If not provided, a new matrix will be created.
The resulting 4x4 look-at matrix. If dest
is provided, it will be modified; otherwise, a new matrix is returned.
Creates a 4x4 'lookAt' viewing transformation matrix.
This function generates a look-at matrix that transforms objects from world space to camera space, where the camera is positioned at
pos
, looks attarget
, and theup
vector defines the camera's up direction. The resulting matrix is commonly used in 3D rendering for setting the camera's view transformation.