Added Line.getPointA and getPointB methods.

This commit is contained in:
Richard Davey 2017-03-31 04:58:03 +01:00
parent 3618214331
commit 3d323836be

View file

@ -28,6 +28,16 @@ Line.prototype = {
this.y2 = y2;
return this;
},
getPointA: function ()
{
return { x1: this.x1, y1: this.y1 };
},
getPointB: function ()
{
return { x1: this.x2, y1: this.y2 };
}
};