open fun union(r: RelativeRectFast!): 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.
r
- RelativeRectFast!: The rectangle being unioned with this rectangle
open fun union(left: Double, top: Double, right: Double, bottom: Double): 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.
left
- Double: The left edge being unioned with this rectangle
top
- Double: The top edge being unioned with this rectangle
right
- Double: The right edge being unioned with this rectangle
bottom
- Double: The bottom edge being unioned with this rectangle
open fun union(x: Double, y: Double): Unit
Update this Rect to enclose itself and the [x,y] coordinate. There is no check to see that this rectangle is non-empty.
x
- Double: The x coordinate of the point to add to the rectangle
y
- Double: The y coordinate of the point to add to the rectangle