Open prisonerjohn opened 10 years ago
Issue by aengelke Thursday May 09, 2013 at 18:10 GMT Originally opened as https://github.com/processing/processing-web/issues/129
Define rotatePVector() (copied from PVector.java)
void rotatePVector(PVector vec, float theta) { float xTemp = vec.x; vec.x = vec.x*cos(theta) - vec.y*sin(theta); vec.y = xTemp*sin(theta) + vec.y*cos(theta); }
and change v.rotate(...) to rotatePVector(v, ...).
v.rotate(...)
rotatePVector(v, ...)
Comment by REAS Friday May 10, 2013 at 19:14 GMT
See issue processing/processing-web#131
Affected examples
Fix implementation
Define rotatePVector() (copied from PVector.java)
and change
v.rotate(...)
torotatePVector(v, ...)
.