Box
data class Box(val centerX: Double, val centerY: Double, val centerZ: Double, val halfXx: Double, val halfXy: Double, val halfXz: Double, val halfYx: Double, val halfYy: Double, val halfYz: Double, val halfZx: Double, val halfZy: Double, val halfZz: Double) : BoundingVolume
Oriented box: ECEF center + 3 half-axis vectors. Layout per spec is [cx, cy, cz, hX.x, hX.y, hX.z, hY.x, hY.y, hY.z, hZ.x, hZ.y, hZ.z]. Coordinates are in tile-local frame; the tile-to-world transform maps them into ECEF.
Constructors
Functions
Link copied to clipboard
Project the 8 OBB corners through tileToWorld to ECEF, then to geographic, and union.
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.