UNPKG

1.18 kBTypeScriptView Raw
1import { Matrix4 } from './../math/Matrix4';
2import { Vector3 } from './../math/Vector3';
3import { Object3D } from './../core/Object3D';
4
5// Cameras ////////////////////////////////////////////////////////////////////////////////////////
6
7/**
8 * Abstract base class for cameras. This class should always be inherited when you build a new camera.
9 */
10export class Camera extends Object3D {
11 /**
12 * This constructor sets following properties to the correct type: matrixWorldInverse, projectionMatrix and projectionMatrixInverse.
13 */
14 constructor();
15
16 /**
17 * This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has the world transform of the Camera.
18 * @default new THREE.Matrix4()
19 */
20 matrixWorldInverse: Matrix4;
21
22 /**
23 * This is the matrix which contains the projection.
24 * @default new THREE.Matrix4()
25 */
26 projectionMatrix: Matrix4;
27
28 /**
29 * This is the inverse of projectionMatrix.
30 * @default new THREE.Matrix4()
31 */
32 projectionMatrixInverse: Matrix4;
33
34 readonly isCamera: true;
35
36 getWorldDirection(target: Vector3): Vector3;
37
38 updateMatrixWorld(force?: boolean): void;
39}