Transform Array of float into an other Array or ArrayList

Re: Transform Array of float into an other Array or ArrayList

You can use FloatList
https://processing.org/reference/FloatList.html

// assuming
float[] data = new float(){3.1, 1.0, PI};
// then
FloatList f = new FloatList(data);
// or
FloatList f = new FloatList();
f.append(data);
1 Like