amorabot_testes-e-algoritimos/Nature of Code/Vetores/Normalize/Normalize.pde
void setup(){
 background(255);
 size(1280,360);
}

void draw() {
  background(255);
 
  PVector mouse = new PVector(mouseX,mouseY);
  PVector center = new PVector(width/2,height/2);
  mouse.sub(center);
 

  mouse.normalize();
  mouse.mult(50);
  translate(width/2,height/2);
  line(0,0,mouse.x,mouse.y);
 
}
