linearly v0.32.0Docs


linearly v0.32.0 / mat4 / targetTo

Function: targetTo()

targetTo(eye, target, up): mat4

Generates a matrix that makes something look at something else.

Parameters

eye: vec3

Position of the viewer

target: vec3

up: vec3

vec3 pointing up

Returns

mat4

Defined in

src/mat4.ts:1375open in new window