• Generate an array of linearly spaced numbers.

    Parameters

    • min: number

      The initial value of the linear space

    • max: number

      The final value of the linear space

    • count: number

      The number of values in the space

    Returns number[]

    The linear space as an array of numbers

    const space = SMath.linspace(1, 5, 6);
    // [ 1, 1.8, 2.6, 3.4, 4.2, 5 ]
MMNEPVFCICPMFPCPTTAAATR