UNPKG

nowjs-core

Version:

NowCanDo Javascript Core [nowjs-core] is a library written by TypeScript code maintains under Apache 2.0 licence

26 lines (25 loc) 456 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Point2D { constructor(x, y) { this.x = x; this.y = y; if (!x) this.x = 0; if (!y) this.y = 0; } get X() { return this.x; } set X(value) { this.x = value; } get Y() { return this.y; } set Y(value) { this.y = value; } } exports.Point2D = Point2D;