gl-camera-pos-from-view-matrix
v1.0.1
Published
A helper module that allows you to recover the camera position from a view matrix.
Downloads
24
Maintainers
Readme
gl-camera-pos-from-view-matrix
A helper module that allows you to extract the camera position from a view-matrix.
Usage
function getCameraPosFromViewMatrix(out, viewMatrix)
The camera position of the camera with the view matrix viewMatrix
is
output to out
as a gl-vec3
. Note that the same vector is also
returned by the function.