radial-camera

Compute a model view matrix based on a radius and two rotations about a point

radial-camera

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

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();

npm install radial-camera

  • Matt-Esch