You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rotate( clockwise=1) {
this.center();
// Pi/2 rotation if camera is positions at the front of the volume
// else -Pi/2 rotation
let invertClock = 1;
if(this.position.distanceTo(this._back) < this.position.distanceTo(this._front)){
invertClock = -1;
}
// Rotate the up vector around the "zCosine"
let rotation = new THREE.Matrix4().makeRotationAxis(
this._zCosine,
clockwise * invertClock * Math.PI/2);
this.up.applyMatrix4(rotation);
this._updateMatrices();
}
The text was updated successfully, but these errors were encountered:
https://github.com/FNNDSC/ami/blob/master/src/cameras/cameras.orthographic.js
in cameras.ortho
The text was updated successfully, but these errors were encountered: