Constructors
constructor
- new Sphere(center?, radius?): Sphere
Parameters
Optional
center: Vector3Optional
radius: number
Properties
center
Readonly
isSphere
isSphere: true
radius
radius: number
Methods
applyMatrix4
- applyMatrix4(matrix): Sphere
clampPoint
- clampPoint(point, target): Vector3
clone
- clone(): this
Returns this
containsPoint
- containsPoint(point): boolean
Returns boolean
copy
- copy(sphere): this
Returns this
distanceToPoint
- distanceToPoint(point): number
Returns number
empty
- empty(): any
Returns any
equals
- equals(sphere): boolean
Returns boolean
expandByPoint
- expandByPoint(point): this
Returns this
getBoundingBox
- getBoundingBox(target): Box3
intersectsBox
- intersectsBox(box): boolean
Returns boolean
intersectsPlane
- intersectsPlane(plane): boolean
Returns boolean
intersectsSphere
- intersectsSphere(sphere): boolean
Returns boolean
isEmpty
- isEmpty(): boolean
Returns boolean
makeEmpty
- makeEmpty(): this
Returns this
set
- set(center, radius): Sphere
setFromPoints
- setFromPoints(points, optionalCenter?): Sphere
translate
- translate(offset): Sphere
union
- union(sphere): this
Returns this
Default