Rect constructor

Rect([
  1. double x = 0.0,
  2. double y = 0.0,
  3. double w = 0.0,
  4. double h = 0.0,
])

Implementation

Rect([double x = 0.0, double y = 0.0, double w = 0.0, double h = 0.0])
{
  /** @type {number} */
  this.left = x;

  /** @type {number} */
  this.top = y;

  /** @type {number} */
  this.width = w;

  /** @type {number} */
  this.height = h;
}