IsaacMizrahi123_Steiner_Tree/Steiner_Tree_Main/Point.pde
class Point {
	
	public PVector p;
	public boolean marked = false;
	public boolean partOfTree = false;

	public Point (float x, float y) {
		p = new PVector(x,y);
	}

	public Point (PVector _p0) {
		p = _p0;
	}

	public void draw(){
		if (marked) { fill(255,200,200); }
		else { 
			if (partOfTree){ fill(153,0,153); }
			else{ fill(0); }
		} 
		ellipse( p.x,p.y, 10,10);    
	}

	public void mark(){
		marked = !marked;
	}

	float getX(){ return p.x; }
	float getY(){ return p.y; }

	float x(){ return p.x; }
	float y(){ return p.y; }

	public float distance( Point o ){
		return PVector.dist( p, o.p );
	}

	public String toString(){
		return p.toString();
	}

}
