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

x/threejs_4_deno/src/Three.js>Frustum

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

Frustums are used to determine what is inside the camera's field of view. They help speed up the rendering process.

Constructors

new
Frustum(
p0?: Plane,
p1?: Plane,
p2?: Plane,
p3?: Plane,
p4?: Plane,
p5?: Plane,
)

Properties

planes: Plane[]

Array of 6 vectors.

Methods

clone(): this
containsPoint(point: Vector3): boolean
copy(frustum: Frustum): this
intersectsBox(box: Box3): boolean
intersectsObject(object: Object3D): boolean
intersectsSphere(sphere: Sphere): boolean
intersectsSprite(sprite: Sprite): boolean
set(
p0: Plane,
p1: Plane,
p2: Plane,
p3: Plane,
p4: Plane,
p5: Plane,
): Frustum