public class RectangleF extends Object
| Modifier and Type | Field and Description |
|---|---|
static RectangleF |
EMPTY
An empty rectangle.
|
| Constructor and Description |
|---|
RectangleF() |
| Modifier and Type | Method and Description |
|---|---|
static RectangleF |
fromLtrb(float left,
float top,
float right,
float bottom)
Gets a rectangle from left top right bottom.
|
Float |
getBottom()
The bottom (Y) of the rectangle.
|
Float |
getLeft()
The left (X) of the rectangle.
|
PointF |
getLocation()
The location (top left) of the rectangle.
|
Float |
getRight()
The right (X) of the rectangle.
|
Float |
getTop()
The top (Y) of the rectangle.
|
RectangleF |
offset(PointF point)
Gets a new rectangle that is offset from the current by the point p.
|
public static final RectangleF EMPTY
public Float getLeft()
public Float getRight()
public Float getTop()
public Float getBottom()
public PointF getLocation()
public RectangleF offset(PointF point)
point - The offset point.RectangleF.public static RectangleF fromLtrb(float left, float top, float right, float bottom)
left - The left.top - The top.right - The right.bottom - The bottom.RectangleF.Copyright © 2023. All rights reserved.