Sphere

data class Sphere(val centerX: Double, val centerY: Double, val centerZ: Double, val radius: Double) : BoundingVolume

Sphere: center + radius in tile-local frame. Tile-to-world transform applies.

Constructors

Link copied to clipboard
constructor(centerX: Double, centerY: Double, centerZ: Double, radius: Double)

Properties

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

Walk ±worldRadius along each ECEF axis from the world-space sphere center, project, union. Coarse but conservative — sufficient for fly-to framing.

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.