-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Hello.
float[] x = new float[20];
float[] y = new float[20];translates to:
let x = new Array(20);
let y = new Array(20);Processing (Java) initializes the float array elements to 0.0, and some Processing examples utilize the initialized array, causing the converted code to fail on NaN values. To make a complete conversion the converter needs to insert the initialization code somewhere:
x.fill(0.0);
y.fill(0.0);
Same goes for int arrays.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels