Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/math/Box2.js>Box2

A simple transformation of three.js for use within a Deno workflow
Go to Latest
class Box2
import { Box2 } from "https://deno.land/x/threejs_4_deno@v121/src/math/Box2.js";

Constructors

new
Box2(min?: Vector2, max?: Vector2)

Methods

clampPoint(point: Vector2, target: Vector2): Vector2
clone(): this
containsBox(box: Box2): boolean
containsPoint(point: Vector2): boolean
copy(box: Box2): this
distanceToPoint(point: Vector2): number
deprecated
empty(): any
equals(box: Box2): boolean
expandByScalar(scalar: number): Box2
intersectsBox(box: Box2): boolean
isEmpty(): boolean
deprecated
isIntersectionBox(b: any): any
set(min: Vector2, max: Vector2): Box2
union(box: Box2): Box2