+ this.centerPoint = new Point2D((this.node0.position.x + this.node1.position.x) / 2, (this.node0.position.y + this.node1.position.y) / 2);
+ },
+ drawCurvedLineP: function(p, q){
+ var that = this;
+ var d = function(x){ return that.env.drawCoordinatesInInteger(x); };
+ var v = this.env.getUnitVectorP(p, q);
+ var w = new Point2D(-(v.y * 50), v.x * 50);
+ this.env.context.beginPath();
+ this.env.context.moveTo(d(p.x), d(p.y));
+ this.env.context.bezierCurveTo(d(this.centerPoint.x + w.x), d(this.centerPoint.y + w.y), d(this.centerPoint.x - w.x), d(this.centerPoint.y - w.y), d(q.x), d(q.y));
+ //this.env.context.closePath();
+ this.env.context.stroke();