Documentation
    Preparing search index...

    Interface BoundingSphere

    A sphere in world space: everything a frustum test needs about an item.

    A record with a caller-owned center rather than a class, because the only producer is computeWorldBoundingSphere and the only consumer is Frustum.intersectsSphere — a class would add a constructor, a barrel entry, and a second name for Vector3 plus a number, and give nothing back. The caller allocates one and reuses it, which is how the per-view cull allocates nothing per item (§7b, plan D7).

    interface BoundingSphere {
        center: Vector3;
        radius: number;
    }
    Index
    center: Vector3

    Centre in world space; written in place by the producer.

    radius: number

    Radius in world units; 0 for a point-sized geometry.