-
-
Save VoloshchenkoAl/34d44e74119718b9b80134852695a28e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Line = (function () { | |
function Line(line) { | |
this.x = line.x; | |
this.y = line.y; | |
this.id = line.id; | |
} | |
Line.prototype.setX = function (x) { | |
this.x = x; | |
}; | |
Line.prototype.setY = function (y) { | |
this.y = y; | |
}; | |
Line.prototype.toString = function () { | |
return "L " + this.x + " " + this.y + " "; | |
}; | |
return Line; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment