AutoMovie API
    Preparing search index...

    Interface IAutoMovieFormationLodInput

    Inputs to the deterministic automatic formation LOD selector.

    selectFormationLod scales distance by 24 / max(1, projectedPixels) and takes the first tier whose maxDistance is null or covers that value, the last tier when none does. Production design validation guarantees tiers in strictly ascending maxDistance with only the final tier unbounded; the selector relies on that order without rechecking it and throws on an empty list.

    interface IAutoMovieFormationLodInput {
        distance: number;
        hysteresis?: number;
        lod: readonly IAutoMovieCompiledFormationLod[];
        previous: "hero" | "near" | "far" | null;
        projectedPixels: number;
    }
    Index
    distance: number

    Camera-to-chunk-centroid distance in meters.

    hysteresis?: number

    Fractional deadband around the boundary between the previous and the desired tier; 0.1 when omitted.

    Compiled anonymous representations in strictly ascending maxDistance, the unbounded (null) tier last; at least one.

    previous: "hero" | "near" | "far" | null

    Tier retained from the previous frame, or null on first selection; a tier missing from lod is treated as null.

    projectedPixels: number

    Projected representative-member diameter in physical pixels; values below one count as one, and 24 leaves the distance unscaled.