Classifying points inside or outside of a circle fails
shiffman opened this issue · 1 comments
shiffman commented
Currently I'm classifying left or right side of the window which works beautifully.
if (x > 300) {
inst.setValue(ca, 0);
} else {
inst.setValue(ca, 1);
}
If I change the classification as follows:
float d = dist(x, y, width/2, height/2);
if (d > 200) {
inst.setValue(ca, 0);
} else {
inst.setValue(ca, 1);
}
I get strange results.