AutoMovie API
    Preparing search index...

    A laid profile. Arrays and records are not frozen; callers must treat the phases as immutable because at and when retain and read that same array. The at closure also reads the supplied initial speed at the start, so keep the input props stable while using the profile.

    interface IProfile {
        at: (seconds: number) => IAutoMovieSpeedProfile.IState;
        end: number;
        length: number;
        peak: number;
        phases: readonly IAutoMovieSpeedProfile.IPhase[];
        start: number;
        stretches: readonly IAutoMovieSpeedProfile.IStretch[];
        when: (distance: number) => number;
    }
    Index
    at: (seconds: number) => IAutoMovieSpeedProfile.IState

    The state at a film second: at rest at the path's start before start, at the start speed at start, and the end state after end.

    end: number

    The film second the last stretch ends.

    length: number

    The path's length, metres.

    peak: number

    The greatest speed reached, metres per second.

    phases: readonly IAutoMovieSpeedProfile.IPhase[]

    The phases in time order.

    start: number

    The film second the motion begins.

    stretches: readonly IAutoMovieSpeedProfile.IStretch[]

    The stretches in order.

    when: (distance: number) => number

    The film second a distance is first reached, after clamping distance to [0, length]. A held distance is reached at the beginning of the hold, including a trailing hold at length; an empty profile returns start.