Box constructor

Box([
  1. double top = 0.0,
  2. double right = 0.0,
  3. double bottom = 0.0,
  4. double left = 0.0,
])

Implementation

Box([double top = 0.0, double right = 0.0, double bottom = 0.0, double left = 0.0])
{
  /**
   * Top
   * @type {number}
   */
  this.top = top;

  /**
   * Right
   * @type {number}
   */
  this.right = right;

  /**
   * Bottom
   * @type {number}
   */
  this.bottom = bottom;

  /**
   * Left
   * @type {number}
   */
  this.left = left;
}