Class: Sphere

og.bv.Sphere

new og.bv.Sphere(radius, center)

Bounding sphere class.
Name Type Description
radius Number optional Bounding sphere radius.
center og.math.Vector3 optional Bounding sphere coordiantes.

Members

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.