Class: Sphere

og/bv/Sphere~Sphere

Bounding sphere class.

new Sphere(radius, center)

Name Type Description
radius Number optional Bounding sphere radius.
center og.Vec3 optional Bounding sphere coordiantes.

Members

centerog.Vec3

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, maxX, minY, maxY, minZ, maxZ]

setFromExtent(ellipsoid, extent)

Sets bounding sphere coordiantes by ellipsoid geodetic extend.
Name Type Description
ellipsoid og.Ellipsoid Ellipsoid.
extent og.Extent Geodetic extent.