Class: Box

og/bv/Box~Box

Bounding box class.

new Box(boundsArr)

Name Type Description
boundsArr *

Members

vertices

Vertices array.

Methods

setFromBoundsArr(bounds)

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