Box

Source: Box.ts:13

Bounding box class.


Constructor

new Box(boundsArr?: NumberArray6): Box

Parameters

  • boundsArr (NumberArray6, optional)

Instance Methods

setFromBoundsArr(bounds: NumberArray6)

Sets bounding box coordinates by the bounds array.

Parameters

  • bounds (NumberArray6) — Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ]

setFromExtent(ellipsoid: Ellipsoid, extent: Extent)

Sets bounding box coordinates by ellipsoid geodetic extend.

Parameters

  • ellipsoid (Ellipsoid) — Ellipsoid.
  • extent (Extent) — Geodetic extent.