UNPKG

431 BJavaScriptView Raw
1var Point =
2/** @class */
3function () {
4 function Point(x, y) {
5 if (x === void 0) {
6 x = 0;
7 }
8
9 if (y === void 0) {
10 y = 0;
11 }
12
13 this.x = 0;
14 this.y = 0;
15 this.x = x;
16 this.y = y;
17 }
18
19 Point.prototype.clone = function () {
20 return new Point(this.x, this.y);
21 };
22
23 Point.prototype.copyFrom = function (p) {
24 this.x = p.x;
25 this.y = p.y;
26 };
27
28 return Point;
29}();
30
31export { Point };
\No newline at end of file