X set(num x, num y, num width, num height) { this.x = x.toDouble(); this.y = y.toDouble(); this.width = width.toDouble(); this.height = height.toDouble(); return this as X; }