OBB.d.ts 879 B

12345678910111213141516171819202122232425262728293031323334
  1. import {
  2. Box3,
  3. Matrix3,
  4. Matrix4,
  5. Plane,
  6. Ray,
  7. Sphere,
  8. Vector3
  9. } from '../../../src/Three';
  10. export class OBB {
  11. center: Vector3;
  12. halfSize: Vector3;
  13. rotation: Matrix3;
  14. constructor( center: Vector3, halfSize: Vector3, rotation: Matrix3 );
  15. set( center: Vector3, halfSize: Vector3, rotation: Matrix3 ): this;
  16. copy( obb: OBB ): this;
  17. clone(): OBB;
  18. getSize( result: Vector3 ): Vector3;
  19. clampPoint( point: Vector3, result: Vector3 ): Vector3;
  20. containsPoint( point: Vector3 ): boolean;
  21. intersectsBox3( box3: Box3 ): boolean;
  22. intersectsSphere( sphere: Sphere ): boolean;
  23. intersectsOBB( obb: OBB, epsilon: number ): boolean;
  24. intersectsPlane( plane: Plane ): boolean;
  25. intersectRay( ray: Ray, result: Vector3 ): Vector3 | null;
  26. intersectsRay( ray: Ray ): boolean;
  27. fromBox3( box3: Box3 ): this;
  28. equals( obb: OBB ): boolean;
  29. applyMatrix4( matrix: Matrix4 ): this;
  30. }