Constructor
new Sphere(radiusopt, centeropt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
radius | Number | <optional> | Bounding sphere radius. |
center | Vec3 | <optional> | Bounding sphere coordinates. |
- Source
Methods
setFromBounds(bounds)
Sets bounding sphere coordinates by the bounds array.
Parameters:
Name | Type | Description |
---|---|---|
bounds | Array.<number> | Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ] |
- Source
setFromExtent(ellipsoid, extent)
Sets bounding sphere coordinates by ellipsoid geodetic extend.
- Source