contains method

bool contains(
  1. num x,
  2. num y, [
  3. num? w,
  4. num? h,
])

Indicates whether this Rect contains the given Point/Rect. @param {number} x The X coordinate of the Point or Rect to include in the new bounds. @param {number} y The Y coordinate of the Point or Rect to include in the new bounds. @param {number=} w The Width of the Rect to include in the new bounds, defaults to zero. @param {number=} h The Height of the Rect to include in the new bounds, defaults to zero. @return {boolean} True if the Point/Rect is contained within this Rect, false otherwise. @see #containsRect @see #containsPoint

Implementation

_i2.bool contains(
  _i2.num x,
  _i2.num y, [
  _i2.num? w,
  _i2.num? h,
]) =>
    _i4.callMethod(
      this,
      'contains',
      [
        x,
        y,
        w ?? _i5.undefined,
        h ?? _i5.undefined,
      ],
    );