Sphere.d.ts 866 B

1234567891011121314151617181920212223242526272829
  1. import { Vector3 } from './Vector3';
  2. import { Box3 } from './Box3';
  3. import { Plane } from './Plane';
  4. import { Matrix4 } from './Matrix4';
  5. export class Sphere {
  6. constructor( center?: Vector3, radius?: number );
  7. center: Vector3;
  8. radius: number;
  9. set( center: Vector3, radius: number ): Sphere;
  10. setFromPoints( points: Vector3[], optionalCenter?: Vector3 ): Sphere;
  11. clone(): this;
  12. copy( sphere: Sphere ): this;
  13. empty(): boolean;
  14. containsPoint( point: Vector3 ): boolean;
  15. distanceToPoint( point: Vector3 ): number;
  16. intersectsSphere( sphere: Sphere ): boolean;
  17. intersectsBox( box: Box3 ): boolean;
  18. intersectsPlane( plane: Plane ): boolean;
  19. clampPoint( point: Vector3, target: Vector3 ): Vector3;
  20. getBoundingBox( target: Box3 ): Box3;
  21. applyMatrix4( matrix: Matrix4 ): Sphere;
  22. translate( offset: Vector3 ): Sphere;
  23. equals( sphere: Sphere ): boolean;
  24. }
粤ICP备19079148号