Closed osresearch closed 8 years ago
Matrix transforms are working in my fork. Use modelX()
and modelY()
in vector_point to support translate()
, scale()
, and rotate()
.
Here's an example from VST.pde in the fireworksDemo.pde:
int x = (int) (modelX(v.x, v.y, 0) * 2047 / width);
int y = (int) (2047 - (modelY(v.x, v.y, 0) * 2047 / height));
Re-implemented my original solution. Should work better now.
This was merged, I think.
Let the user call
translate()
androtate()
in Processing to adjust the position and orientation of the vectors.