Threepp.Sphere¶
Sphere class
Members¶
Constructors¶
Methods¶
- set
- clone
- copy
- isEmpty
- makeEmpty
- containsPoint
- distanceToPoint
- intersectsSphere
- intersectsBox
- intersectsPlane
- expandByPoint
- translate
- equals
Sphere¶
Constructor
Arguments
| Arguments | Default | Description |
|---|---|---|
center |
|
Center (Vector3). |
radius |
|
Radius. |
Description
Constructor
set¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
center |
|
|
radius |
|
Description
Sets the values
clone¶
Method
Description
Clones the sphere
copy¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
sphere |
|
Description
Copies another sphere
isEmpty¶
Method
Description
Whether the sphere is empty
makeEmpty¶
Method
Description
Makes the sphere empty
containsPoint¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
Description
Whether the sphere contains a point
distanceToPoint¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
Description
Distance to a point
intersectsSphere¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
sphere |
|
Description
Whether the sphere intersects another sphere
intersectsBox¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
box |
|
Description
Whether the sphere intersects a box
intersectsPlane¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
plane |
|
Description
Whether the sphere intersects a plane
expandByPoint¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
point |
|
Description
Expands the sphere to include a point
translate¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
offset |
|
Description
Translates the sphere
equals¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
sphere |
|
Description
Equality test