setToSector

fun setToSector(sector: Sector, globe: Globe, minHeight: Float, maxHeight: Float): BoundingBox

Sets this bounding box such that it contains a specified sector on a specified globe with min and max terrain height.
To create a bounding box that contains the sector at mean sea level, specify zero for the minimum and maximum height. To create a bounding box that contains the terrain surface in this sector, specify the actual minimum and maximum height values associated with the terrain in the sector, multiplied by the scene's vertical exaggeration.

Return

this bounding box set to contain the specified sector

Parameters

sector

the sector for which to create the bounding box

globe

the globe associated with the sector

minHeight

the minimum terrain height within the sector

maxHeight

the maximum terrain height within the sector