intersect method

Rect intersect(
  1. num x,
  2. num y,
  3. num w,
  4. num h,
)

Modify this Rect so that it is the intersection of this Rect and the rectangle defined by x, y, w, h. @param {number} x @param {number} y @param {number} w @param {number} h @return {Rect} this. @see #intersectRect @see #intersects

Implementation

_i3.Rect intersect(
  _i2.num x,
  _i2.num y,
  _i2.num w,
  _i2.num h,
) =>
    _i4.callMethod(
      this,
      'intersect',
      [
        x,
        y,
        w,
        h,
      ],
    );