function Line(start, end) {
	this.start = start;
	this.end = end;

	this.getAngle=function() {
		return Math.atan2(this.end.y-this.start.y, this.end.x-this.start.x);
	}

	this.draw = function(ctx, color) {
		ctx.beginPath();
		ctx.strokeStyle=color;
		ctx.moveTo(this.start.x,this.start.y);
		ctx.lineTo(this.end.x,this.end.y);
		ctx.stroke();
	}	
}
