如视 Five SDK
    Preparing search index...

    Interface BoundingVolume

    interface BoundingVolume {
        type: "box" | "sphere" | "regin";
        applyMatrix4(matrix: Matrix4): this;
        clone(): BoundingVolume;
        copy(boundingVolume: this): this;
        distanceSquaredToPoint(point: Vector3): number;
        distanceToPlane(plane: Plane): number;
        distanceToPoint(point: Vector3): number;
        fromJson(json: any): this;
        getBoundingBox(target: Box3): Box3;
        getCenter(result: Vector3): Vector3;
        intersectPlane(plane: Plane): VolumePlaneIntersect;
        intersectRay(ray: Ray, threshold?: number, far?: number): boolean;
        toGeometry(): BufferGeometry;
        toJson(): BoundingVolumeJson;
    }

    Implemented by

    Index

    Properties

    type: "box" | "sphere" | "regin"

    Methods

    • Parameters

      • matrix: Matrix4

      Returns this

    • Parameters

      • boundingVolume: this

      Returns this

    • Parameters

      • point: Vector3

      Returns number

    • Parameters

      • plane: Plane

      Returns number

    • Parameters

      • point: Vector3

      Returns number

    • Parameters

      • json: any

      Returns this

    • Parameters

      • target: Box3

      Returns Box3

    • Parameters

      • result: Vector3

      Returns Vector3

    • Parameters

      • ray: Ray
      • Optionalthreshold: number
      • Optionalfar: number

      Returns boolean

    • Returns BufferGeometry