PVector operation: P0_1 = (1-t)*P0 + t*P1
in
Programming Questions
•
1 year ago
I have to do 5 calculations like:
P0_1 = (1-t)*P0 + t*P1
Atm i have this, can it be done easier?
- P0_1 = P0.get();
- P0_1.mult(1-t);
- PVector tmpP1 = P1.get();
- tmpP1.mult(t);
- P0_1.add(tmpP1);
1