Frustum.d.ts 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { Plane } from './Plane';
  2. import { Matrix4 } from './Matrix4';
  3. import { Object3D } from './../core/Object3D';
  4. import { Sprite } from './../objects/Sprite';
  5. import { Sphere } from './Sphere';
  6. import { Box3 } from './Box3';
  7. import { Vector3 } from './Vector3';
  8. /**
  9. * Frustums are used to determine what is inside the camera's field of view. They help speed up the rendering process.
  10. */
  11. export class Frustum {
  12. constructor(
  13. p0?: Plane,
  14. p1?: Plane,
  15. p2?: Plane,
  16. p3?: Plane,
  17. p4?: Plane,
  18. p5?: Plane
  19. );
  20. /**
  21. * Array of 6 vectors.
  22. */
  23. planes: Plane[];
  24. set(
  25. p0?: number,
  26. p1?: number,
  27. p2?: number,
  28. p3?: number,
  29. p4?: number,
  30. p5?: number
  31. ): Frustum;
  32. clone(): this;
  33. copy( frustum: Frustum ): this;
  34. setFromMatrix( m: Matrix4 ): Frustum;
  35. intersectsObject( object: Object3D ): boolean;
  36. intersectsSprite( sprite: Sprite ): boolean;
  37. intersectsSphere( sphere: Sphere ): boolean;
  38. intersectsBox( box: Box3 ): boolean;
  39. containsPoint( point: Vector3 ): boolean;
  40. }