linearly v0.32.0Docs


linearly v0.32.0 / mat4 / lookAt

Function: lookAt()

lookAt(eye, center, up): mat4

Generates a look-at matrix with the given eye position, focal point, and up axis. If you want a matrix that actually makes an object look at another object, you should use targetTo instead.

Parameters

eye: vec3

Position of the viewer

center: vec3

Point the viewer is looking at

up: vec3

vec3 pointing up

Returns

mat4

Defined in

src/mat4.ts:1296open in new window