Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gl-camera-pos-from-view-matrix

Erkaman11MIT1.0.1

A helper module that allows you to recover the camera position from a view matrix.

stackgl, gl, webgl, matrix, mat4, camera, view, position

readme

gl-camera-pos-from-view-matrix

A helper module that allows you to extract the camera position from a view-matrix.

NPM

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.