linearly v0.32.0 • Docs
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