Class: Box

og.bv.Box

new og.bv.Box()

Bounding box class.

Members

vertices

Vertices array.

Methods

setFromBounds(bounds)

Sets bounding box 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 box coordiantes by ellipsoid geodetic extend.
Name Type Description
ellipsoid og.Ellipsoid Ellipsoid.
extent og.Extent Geodetic extent.