amorabot_testes-e-algoritimos/Nature of Code/Vetores/SubVetores/SubVetores.pde
void setup() {
  size(640,360);
}
 
void draw() {
  background(255);
//Two PVectors, one for the mouse location and one for the center of the window
  PVector mouse  = new PVector(mouseX,mouseY);
  PVector center = new PVector(width/2,height/2);
//PVector subtraction!
  mouse.sub(center);
//Draw a line to represent the vector.
  translate(width/2,height/2);
  line(0,0,mouse.x,mouse.y);
}
