fun set(ref: RectF, left: float, top: float, right: float, bottom: float): void
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.
left
- float: The X coordinate of the left side of the rectangle
top
- float: The Y coordinate of the top of the rectangle
right
- float: The X coordinate of the right side of the rectangle
bottom
- float: The Y coordinate of the bottom of the rectangle
fun set(ref: Rect, left: float, top: float, right: float, bottom: float): void
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.
left
- float: The X coordinate of the left side of the rectangle
top
- float: The Y coordinate of the top of the rectangle
right
- float: The X coordinate of the right side of the rectangle
bottom
- float: The Y coordinate of the bottom of the rectangle
fun set(left: double, top: double, right: double, bottom: double): void
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.
left
- double: The X coordinate of the left side of the rectangle
top
- double: The Y coordinate of the top of the rectangle
right
- double: The X coordinate of the right side of the rectangle
bottom
- double: The Y coordinate of the bottom of the rectangle
fun set(src: RelativeRectFast): void
Copy the coordinates from src into this rectangle.
src
- RelativeRectFast: The rectangle whose coordinates are copied into this rectangle.
fun set(ref: RectF, src: RectF): void
Copy the coordinates from src into this rectangle.
src
- RectF: The rectangle whose coordinates are copied into this rectangle.
fun set(ref: RectF, src: Rect): void
Copy the coordinates from src into this rectangle.
src
- Rect: The rectangle whose coordinates are copied into this rectangle.
fun set(ref: Rect, src: Rect): void
Copy the coordinates from src into this rectangle.
src
- Rect: The rectangle whose coordinates are copied into this rectangle.
fun set(ref: Rect, src: RectF): void
Copy the coordinates from src into this rectangle.
src
- RectF: The rectangle whose coordinates are copied into this rectangle.