We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
Better PVector Integration (Read 1258 times)
Better PVector Integration
Nov 26th, 2009, 7:50am
 
now that PVector is a standard part of processing, can we have additional methods that take it as an argument? i was drawing 3d shapes last night and got tired of using

vertex(p.x, p.y, p.z);

when i'd've liked to have been able to just type

vertex(p);

(does a PVector know whether it's a 2d or 3d vector? does this matter?)

line(), quad(), translate(), bezier() and a lot more could all benefit, color() even.
Page Index Toggle Pages: 1