• Normalizes, then rearranges the midPoint of a group of offsets to the new alpha.

    The midPoint determines the positional center of the train. It's used to determine where the train passes to trigger a trigger point or to check if it is in a given section.

    • An alpha of 0,0 means the middle is in the front of the train.
    • An alpha of 0.5 means the middle is in the center of the train.
    • An alpha of 1 means the middle is in the back of the train.

    Returns

    Parameters

    • offsets: number[]
    • alpha: number

    Returns number[]

Generated using TypeDoc