Sphere

Source: Sphere.ts:13

Bounding sphere class.


Constructor

new Sphere(radius?: Number, center?: Vec3): Sphere

Parameters

  • radius (Number, optional) — Bounding sphere radius.
  • center (Vec3, optional) — Bounding sphere coordinates.

Instance Methods

setFromBounds(bounds: Array.<number>)

Sets bounding sphere coordinates by the bounds array.

Parameters

  • bounds (Array.<number>) — Bounds is an array where [minX, minY, minZ, maxX, maxY, maxZ]

setFromExtent(ellipsoid: Ellipsoid, extent: Extent)

Sets bounding sphere coordinates by ellipsoid geodetic extend.

Parameters

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