Skip to content

Documentation / @ripl/3d / mat4LookAt

Function: mat4LookAt() ​

mat4LookAt(eye, target, up): Matrix4

Defined in: 3d/src/math/matrix.ts:117

Constructs a view matrix looking from eye toward target with the given up direction.

Parameters ​

ParameterType
eyeVector3
targetVector3
upVector3

Returns ​

Matrix4