eye-vector

Extract the eye vector (camera position) from a view matrix

eye-vector

Extract the eye vector (camera position) from a view matrix.

Given a camera view matrix view, return a 3-dimensional vector with the current camera position in world space.

You can pass an existing array as out to update the position there, if you'd like to avoid any garbage collection.

MIT. See LICENSE.md for details.