midibyte_dataVizualization-sp19/project4/sketch3_scatterplot/Point.pde
public class Point {
  
  float x, y, datax, datay;
  int ptColor = -1;
  float pointSize = 0;
  int clickBuffer = 6;

  Point(float _x, float _y ){
    x = _x;
    y = _y;
  }

  Point(float _x, float _y, float _datax, float _datay ){
    x = _x;
    y = _y;
    datax = _datax;
    datay = _datay;
  }
  
  void setColor(int _color){
    ptColor = _color; 
  }
  
  void print(){
    
    println( "x: " + x + " y: " + y );
    
  }
  
  boolean mouseInside(){
     return (x -clickBuffer < mouseX) && (x + pointSize +clickBuffer)>mouseX && (y -clickBuffer)< mouseY && (y+ pointSize + clickBuffer)>mouseY; 
  }
  
}
