Buckets:
| import { WebGLCoordinateSystem } from '../constants.js'; | |
| import { Matrix4 } from '../math/Matrix4.js'; | |
| import { Object3D } from '../core/Object3D.js'; | |
| class Camera extends Object3D { | |
| constructor() { | |
| super(); | |
| this.isCamera = true; | |
| this.type = 'Camera'; | |
| this.matrixWorldInverse = new Matrix4(); | |
| this.projectionMatrix = new Matrix4(); | |
| this.projectionMatrixInverse = new Matrix4(); | |
| this.coordinateSystem = WebGLCoordinateSystem; | |
| } | |
| copy( source, recursive ) { | |
| super.copy( source, recursive ); | |
| this.matrixWorldInverse.copy( source.matrixWorldInverse ); | |
| this.projectionMatrix.copy( source.projectionMatrix ); | |
| this.projectionMatrixInverse.copy( source.projectionMatrixInverse ); | |
| this.coordinateSystem = source.coordinateSystem; | |
| return this; | |
| } | |
| getWorldDirection( target ) { | |
| return super.getWorldDirection( target ).negate(); | |
| } | |
| updateMatrixWorld( force ) { | |
| super.updateMatrixWorld( force ); | |
| this.matrixWorldInverse.copy( this.matrixWorld ).invert(); | |
| } | |
| updateWorldMatrix( updateParents, updateChildren ) { | |
| super.updateWorldMatrix( updateParents, updateChildren ); | |
| this.matrixWorldInverse.copy( this.matrixWorld ).invert(); | |
| } | |
| clone() { | |
| return new this.constructor().copy( this ); | |
| } | |
| } | |
| export { Camera }; | |
Xet Storage Details
- Size:
- 1.27 kB
- Xet hash:
- d13d58b9a33e5501bbba581d80454e9110f1e650c0be5c76207ac7396178d47a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.