set

operator fun set(left: Int, top: Int, right: Int, bottom: Int)

Set the rectangle's coordinates to the specified values. Note: no range checking is performed, so it is up to the caller to ensure that left <= right and top <= bottom.

Parameters

left

The X coordinate of the left side of the rectangle

top

The Y coordinate of the top of the rectangle

right

The X coordinate of the right side of the rectangle

bottom

The Y coordinate of the bottom of the rectangle