Interface BoundingVolume

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

Implemented by

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
    • Optional far: number

    Returns boolean

  • Returns BufferGeometry