Skip to content

resample_linear

float [] resample_linear(float input[], int new_length)

vector [] resample_linear(vector input[], int new_length)

vector2 [] resample_linear(vector2 input[], int new_length)

vector4 [] resample_linear(vector4 input[], int new_length)

Returns a new array of size new_length, uniformly sampled from the input array. Array elements are linearly interpolated from the input array.