gl-camera-pos-from-view-matrix

1.0.1 • Public • Published

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.

Package Sidebar

Install

npm i gl-camera-pos-from-view-matrix

Weekly Downloads

3

Version

1.0.1

License

MIT

Last publish

Collaborators

  • erkaman