Constructors
constructor
- new Sphere(center?, radius?): Sphere
Parameters
Optional
center: Vector3Optional
radius: number
Properties
Readonly
isSphere
isSphere: true
Methods
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
getBoundingBox
- getBoundingBox(target): Box3
equals
- equals(sphere): boolean
Returns boolean
union
- union(sphere): this
Returns this
Read-only flag to check if a given object is of type Sphere.