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(left: java.math.BigDecimal, top: java.math.BigDecimal, right: java.math.BigDecimal, bottom: java.math.BigDecimal): 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
- java.math.BigDecimal: The X coordinate of the left side of the rectangle
top
- java.math.BigDecimal: The Y coordinate of the top of the rectangle
right
- java.math.BigDecimal: The X coordinate of the right side of the rectangle
bottom
- java.math.BigDecimal: The Y coordinate of the bottom of the rectangle
fun set(src: RelativeRectAccurate): void
Copy the coordinates from src into this rectangle.
src
- RelativeRectAccurate: 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.