Camera.d.ts 978 B

123456789101112131415161718192021222324252627282930313233
  1. import { Matrix4 } from './../math/Matrix4';
  2. import { Vector3 } from './../math/Vector3';
  3. import { Object3D } from './../core/Object3D';
  4. // Cameras ////////////////////////////////////////////////////////////////////////////////////////
  5. /**
  6. * Abstract base class for cameras. This class should always be inherited when you build a new camera.
  7. */
  8. export class Camera extends Object3D {
  9. /**
  10. * This constructor sets following properties to the correct type: matrixWorldInverse, projectionMatrix and projectionMatrixInverse.
  11. */
  12. constructor();
  13. /**
  14. * This is the inverse of matrixWorld. MatrixWorld contains the Matrix which has the world transform of the Camera.
  15. */
  16. matrixWorldInverse: Matrix4;
  17. /**
  18. * This is the matrix which contains the projection.
  19. */
  20. projectionMatrix: Matrix4;
  21. isCamera: true;
  22. copy(source: Camera, recursive?: boolean): this;
  23. getWorldDirection(target: Vector3): Vector3;
  24. updateMatrixWorld(force?: boolean): void;
  25. }