UNPKG

ts-jsdk

Version:

TypeScript implementation of the Java platform

13 lines 367 B
export class Rectangle { constructor(location, dimension) { this.location = location; this.dimension = dimension; } getCenterX() { return this.location.getX() + this.dimension.getWidth() / 2; } getCenterY() { return this.location.getY() + this.dimension.getWidth() / 2; } } //# sourceMappingURL=Rectangle.js.map