new Sphere(radius, center)
Name | Type | Description |
---|---|---|
radius |
Number | optional Bounding sphere radius. |
center |
Vec3 | optional Bounding sphere coordiantes. |
Members
-
centerVec3
-
Sphere coordiantes.
-
radiusNumber
-
Sphere radius.
Methods
-
setFromBounds(bounds)
-
Sets bounding sphere coordinates by the bounds array.
Name Type Description bounds
Array.<number> Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ] -
setFromExtent(ellipsoid, extent)
-
Sets bounding sphere coordiantes by ellipsoid geodetic extend.
Name Type Description ellipsoid
Ellipsoid Ellipsoid. extent
Extent Geodetic extent.