IFClite TypeScript API
    Preparing search index...

    Interface PickFitPolicyOptions

    interface PickFitPolicyOptions {
        aspect?: number;
        fovY: number;
        linearAspectThreshold?: number;
        linearMinLongest?: number;
        viewportShortPx?: number;
    }
    Index
    aspect?: number

    Viewport width / height. When given, the compact pose also keeps the box inside the horizontal field, which is the narrower one on a portrait viewport (a phone). Omitted, the compact pose is the legacy one exactly.

    fovY: number

    Vertical field-of-view in radians.

    linearAspectThreshold?: number

    Override the linear-detection threshold. Production should leave this at the default; exposed for tests that pin the threshold behaviour.

    linearMinLongest?: number

    Override the minimum longest-axis extent (world units) at/above which the linear policy is allowed to apply. Production should leave this at the default; exposed for tests that pin the size-floor behaviour.

    viewportShortPx?: number

    Shortest viewport dimension in pixels (height for landscape).