AutoMovie API
    Preparing search index...

    A course made ready to sample.

    interface IPlan {
        at: (seconds: number) => ArchetypeCourse.IState;
        bends: readonly ArchetypeCourse.IBend[];
        course: ArchetypeCourse.ICourse | ITimed;
        duration: number;
        instants: readonly { label: string; seconds: number }[];
        kind: "plan";
        legSpans: readonly ILegSpan[];
        length: number;
        peak: number;
        when: (distance: number) => number;
    }
    Index
    at: (seconds: number) => ArchetypeCourse.IState

    The state at a second; before the course begins it is the start and after it ends the end.

    bends: readonly ArchetypeCourse.IBend[]

    Where the path bends, for the rides' limits.

    The course, of legs or timed.

    duration: number

    The film second the course ends: from 0, through any start second, to the end.

    instants: readonly { label: string; seconds: number }[]

    Named instants in time order: depart where the course begins and stop where it ends; without speed marks, cruise when the cruising speed is reached and held and brake when the final braking starts, which on a course too short to cruise is the peak; with speed marks, leg<k>Start where the k-th leg from 1 begins after the first, and stop<k> and depart<k> where the support stops at the end of the k-th leg and drives on; turn<k>Start and turn<k>End for the k-th leg when it is a turn.

    kind: "plan"

    The discriminator: a planned course, told from an unplanned one (ICourse.kind) by it, so a ride taking either narrows by type, not by which members it happens to have.

    legSpans: readonly ILegSpan[]

    Each leg's stretch of the path and the fastest it is taken, in the legs' order; none for a timed course.

    length: number

    The path's length, metres.

    peak: number

    The greatest speed reached, metres per second.

    when: (distance: number) => number

    The film second at which a distance along the path is first reached; a distance before the start gives the start and one past the end the end.