union method
Modify this Rect to be exactly big enough to contain both the original Rect and the given rectangular area. @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 {Rect} this. @see #unionRect @see #unionPoint
Implementation
_i3.Rect union(
_i2.num x,
_i2.num y, [
_i2.num? w,
_i2.num? h,
]) =>
_i4.callMethod(
this,
'union',
[
x,
y,
w ?? _i5.undefined,
h ?? _i5.undefined,
],
);