AutoMovie API
    Preparing search index...

    Type Alias IAutoMovieAffordanceCoupling

    IAutoMovieAffordanceCoupling:
        | { id: string; ratio: number; reversible?: boolean; table?: never }
        | {
            id: string;
            ratio?: never;
            reversible?: boolean;
            table: [number, number][];
        }

    How a follower's travel is set from its leader's: by a ratio, or by a table of the leader's travel against the follower's.

    id names another articulation of the same model. Each follows chain and each rides chain is acyclic, checked separately: travels are resolved before spatial transforms, so a screw's rotation can drive the slider its handle rides. A ratio is any finite number, negative for a follower that turns against its leader; every travel it gives over the leader's range lies in the follower's own range. A table lists [leader, follower] pairs, each in the travel unit of its articulation's kind, the leader's travels strictly increasing from the least of its range to the greatest, and every follower's travel inside the follower's range; between pairs the follower's travel is interpolated linearly. A table need not be monotone: a pistol's hammer falls as its slide returns. With reversible: true, a state may instead name this follower: the ratio must be nonzero, or the table's outputs strictly monotone, so its leader travel is unique. A state names only one input per coupled degree of freedom; redundant or conflicting inputs are refused. Engine admission enforces the coupling rules.

    Type Declaration

    • { id: string; ratio: number; reversible?: boolean; table?: never }
      • id: string

        The leader's affordance id.

      • ratio: number

        The follower's travel over the leader's, in the units of the two kinds.

      • Optionalreversible?: boolean

        Permits the state to name this follower and derive its leader by division; requires a nonzero ratio. Absent or false, only the leader can be driven.

      • Optionaltable?: never

        A ratio is not a table.

    • { id: string; ratio?: never; reversible?: boolean; table: [number, number][] }
      • id: string

        The leader's affordance id.

      • Optionalratio?: never

        A table is not a ratio.

      • Optionalreversible?: boolean

        Permits the state to name this follower and invert the table; requires strictly increasing or strictly decreasing outputs. Absent or false, only the leader can be driven.

      • table: [number, number][]

        [leader, follower] travel pairs, the leader's strictly increasing over its whole range.