eye-vector

1.0.0 • Public • Published

eye-vector experimental

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

Usage

eye-vector

require('eye-vector')(view[, out])

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.

License

MIT. See LICENSE.md for details.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2
  • 0.0.0
    1

Package Sidebar

Install

npm i eye-vector

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hughsk