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

Link copied to clipboard
constructor(centerX: Double, centerY: Double, centerZ: Double, halfXx: Double, halfXy: Double, halfXz: Double, halfYx: Double, halfYy: Double, halfYz: Double, halfZx: Double, halfZy: Double, halfZz: 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
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

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.