ofVec2f and alias


i want make a copy of a ofVec2f, but i don’t want modificated the original * ofVec2f* i done it:

ofVec2f & nuVec = oldVec2f;
nuVec *= -1;

it is right ?

I’m not sure i understand your question, but the code you posted is creating a new reference to oldVec called nuVec. The underlying memory address for both is the same, and if you modify one, it will modify the other as well. If you want to create a copy, just get rid of the &.