Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>Box3

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Box3
Re-export
import { Box3 } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";

Constructors

new
Box3(min?: Vector3, max?: Vector3)

Properties

readonly
isBox3: true
max: Vector3
min: Vector3

Methods

applyMatrix4(matrix: Matrix4): this
clampPoint(point: Vector3, target: Vector3): Vector3
clone(): this
containsBox(box: Box3): boolean
containsPoint(point: Vector3): boolean
copy(box: Box3): this
distanceToPoint(point: Vector3): number
deprecated
empty(): any
equals(box: Box3): boolean
expandByObject(object: Object3D): this
expandByPoint(point: Vector3): this
expandByScalar(scalar: number): this
expandByVector(vector: Vector3): this
intersect(box: Box3): this
intersectsBox(box: Box3): boolean
intersectsPlane(plane: Plane): boolean
intersectsSphere(sphere: Sphere): boolean
intersectsTriangle(triangle: Triangle): boolean
isEmpty(): boolean
deprecated
isIntersectionBox(b: any): any
deprecated
isIntersectionSphere(s: any): any
makeEmpty(): this
set(min: Vector3, max: Vector3): this
setFromArray(array: ArrayLike<number>): this
setFromBufferAttribute(bufferAttribute: BufferAttribute): this
setFromCenterAndSize(center: Vector3, size: Vector3): this
setFromObject(object: Object3D): this
setFromPoints(points: Vector3[]): this
translate(offset: Vector3): this
union(box: Box3): this