set method
Sets all components at once.
Values are converted using num.toDouble.
Implementation
RectangleD 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;
}