Region

data class Region(val west: Double, val south: Double, val east: Double, val north: Double, val minHeight: Double, val maxHeight: Double) : BoundingVolume

Geographic region: west, south, east, north (radians) + minHeight, maxHeight (meters).

Constructors

Link copied to clipboard
constructor(west: Double, south: Double, east: Double, north: Double, minHeight: Double, maxHeight: Double)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun worldBoundingSector(globe: Globe, tileToWorld: Matrix4, result: Sector): Sector

Region is already geographic; tile.transform doesn't apply per spec, so just copy the spec's radians into the sector directly.

Link copied to clipboard
open override fun worldBoundingSphere(globe: Globe, tileToWorld: Matrix4, result: BoundingSphere): BoundingSphere

Conservative world-space sphere used for frustum culling + nearest-point distance.