Socket
Book a DemoInstallSign in
Socket

lookat-camera

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lookat-camera

Simple "lookat" camera abstraction built on top of gl-matrix

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

lookat-camera

stable

Simple "lookat" camera abstraction built on top of gl-matrix.

Usage

NPM

See demo.js for a usage example.

camera = require('lookat-camera')()

Creates a new camera instance.

view = camera.view([view])

Updates the view matrix based on the camera's current configuration and returns the result. Optionally, you may pass in your own view array to modify directly.

camera.position

[x, y, z] vector that determines the position of the camera in world space.

camera.target

[x, y, z] vector that determines the target of the camera in world space.

camera.up

Normalized [x, y, z] vector that determines the up direction of the camera. Generally you'll want this to be [1, 0, 0], [0, 1, 0] or [0, 0, 1].

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

Keywords

ecosystem:stackgl

FAQs

Package last updated on 16 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts