Processing bug - setting A (object) to B (object) and modifying A, it will change B too!

In the case above variable c is assigned w/ the same reference (memory address) value as variable a.

Therefore they’re both alias to the same PVector object.

If you don’t want c to be an alias clone a before assigning it to c using method copy() or get():
PVector c = a.get();

2 Likes