rvq_Processing/sketch_160727a_8_5_More_on_objects___Particle_overlaping/Particle.pde
class Particle{
  float x, y;
  float r;
  
  Particle(){
  x=random(width);
  y=random(height);
  r=random(4,18);
  }

  Particle(float tempX, float tempY, float tempR){
  x=tempX;
  y=tempY;
  r=tempR;
  }
  
  //function inside of an object
  boolean overlaps(Particle other){
    float d=dist(x,y,other.x,other.y);
    if (d < r+other.r){
      return true;
    }else{
      return false;
    }
  }

  void display(){
   stroke(255);
   strokeWeight(4);
   noFill();
   ellipse(x,y,r*2,r*2);
  }

}