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/Sphere.d.ts>Sphere

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

Constructors

new
Sphere(center?: Vector3, radius?: number)

Properties

center: Vector3
radius: number

Methods

clampPoint(point: Vector3, target: Vector3): Vector3
clone(): this
containsPoint(point: Vector3): boolean
copy(sphere: Sphere): this
distanceToPoint(point: Vector3): number
deprecated
empty(): any
equals(sphere: Sphere): boolean
intersectsBox(box: Box3): boolean
intersectsPlane(plane: Plane): boolean
intersectsSphere(sphere: Sphere): boolean
isEmpty(): boolean
makeEmpty(): this
set(center: Vector3, radius: number): Sphere
setFromPoints(points: Vector3[], optionalCenter?: Vector3): Sphere