Skip to content

Matt-Esch/radial-camera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

radial-camera

Compute the camera model view matrix based on a given radius and two angles of rotation about a point in 3D space

Example

var RadialCamera = require('radial-camera');

var camera = new RadialCamera({
    radius: 240,
    angleY: Math.PI,
    angleX: Math.PI / 4
});

// Contains the transformation matrix
var transform = camera.transform;


// Update the transform
camera.angleX = 0;
var updatedTransform = camera.computeTransform();

Installation

npm install radial-camera

Contributors

  • Matt-Esch

MIT Licenced

About

Computes the model view matrix for a camera rotated around a point

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published