• Parameters

    • a: number
    • b: number
    • num_steps: number

    Returns readonly number[]

    a non-linear increasing range of numbers, with a bias towards the beginning.

    Generates a linear range on [0,1] with |num_steps|, then squares all the values to make the curve be quadratic, thus biasing towards 0, but remaining on the [0, 1] range. This biased range is then scaled to the desired range using lerp. Different curves could be generated by changing c, where greater values of c will bias more towards 0.

Generated using TypeDoc