function Point(x,y) {
	this.x = x;
	this.y = y;
	
	this.rotate = function(radian) {
		var tmp_x = this.x;
		var tmp_y = this.y;
		this.x = tmp_x*Math.cos(radian)-tmp_y*Math.sin(radian);
		this.y = tmp_x*Math.sin(radian)+tmp_y*Math.cos(radian);
	}
	
	this.draw = function(ctx, color) {
		ctx.beginPath();
		ctx.fillStyle=color;
		ctx.arc(x,y,2,0,Math.PI*2,true); 
		ctx.fill();
	}
	
	this.translate = function(dx,dy) {
		this.x+=dx;
		this.y+=dy;
	}
	
	this.clone = function() {
		return new Point(this.x, this.y);
	}
}
