Constructors
constructor
- new Sphere(center?, radius?): Sphere
Parameters
Optional
center: Vector3Optional
radius: number
Properties
Readonly
isSphere
isSphere: true
center
radius
radius: number
Methods
set
- set(center, radius): Sphere
setFromPoints
- setFromPoints(points, optionalCenter?): Sphere
clone
- clone(): this
Returns this
copy
- copy(sphere): this
Returns this
expandByPoint
- expandByPoint(point): this
Returns this
isEmpty
- isEmpty(): boolean
Returns boolean
makeEmpty
- makeEmpty(): this
Returns this
containsPoint
- containsPoint(point): boolean
Returns boolean
distanceToPoint
- distanceToPoint(point): number
Returns number
intersectsSphere
- intersectsSphere(sphere): boolean
Returns boolean
intersectsBox
- intersectsBox(box): boolean
Returns boolean
intersectsPlane
- intersectsPlane(plane): boolean
Returns boolean
clampPoint
- clampPoint(point, target): Vector3
getBoundingBox
- getBoundingBox(target): Box3
applyMatrix4
- applyMatrix4(matrix): Sphere
translate
- translate(offset): Sphere
equals
- equals(sphere): boolean
Returns boolean
union
- union(sphere): this
Returns this
empty
- empty(): any
Returns any
Read-only flag to check if a given object is of type Sphere.