ly.img.android.pesdk.backend.model.chunk / RelativeRectAccurate / union

union

open fun union(r: RelativeRectAccurate!): Unit

Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.

Parameters

r - RelativeRectAccurate!: The rectangle being unioned with this rectangle

open fun union(left: BigDecimal!, top: BigDecimal!, right: BigDecimal!, bottom: BigDecimal!): Unit

Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.

Parameters

left - BigDecimal!: The left edge being unioned with this rectangle

top - BigDecimal!: The top edge being unioned with this rectangle

right - BigDecimal!: The right edge being unioned with this rectangle

bottom - BigDecimal!: The bottom edge being unioned with this rectangle

open fun union(x: BigDecimal!, y: BigDecimal!): Unit

Update this Rect to enclose itself and the [x,y] coordinate. There is no check to see that this rectangle is non-empty.

Parameters

x - BigDecimal!: The x coordinate of the point to add to the rectangle

y - BigDecimal!: The y coordinate of the point to add to the rectangle