@Deprecated
@ApiStatus.ScheduledForRemoval
public class Rect2f
extends java.lang.Object
| Constructor and Description |
|---|
Rect2f(float width,
float height)
Deprecated.
|
Rect2f(float x,
float y,
float width,
float height)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Rect2f rect)
Deprecated.
Check if this rectangle contains another rectangle.
|
float |
getArea()
Deprecated.
|
float |
getHeight()
Deprecated.
|
float |
getWidth()
Deprecated.
|
float |
getX()
Deprecated.
|
float |
getY()
Deprecated.
|
Rect2f |
intersection(Rect2f rect)
Deprecated.
Get the intersection of this rectangle with another rectangle.
|
boolean |
intersects(Rect2f rect)
Deprecated.
Check if this rectangle intersects with another rectangle.
|
boolean |
isSquare()
Deprecated.
|
Rect2f |
scale(float scale)
Deprecated.
Scale the rectangle by the same factor in both directions.
|
Rect2f |
scale(float scaleX,
float scaleY)
Deprecated.
Scale the rectangle by different factors in both directions.
|
public static final Rect2f ZERO
public Rect2f(float width,
float height)
public Rect2f(float x,
float y,
float width,
float height)
public float getX()
public float getY()
public float getWidth()
public float getHeight()
public float getArea()
public boolean isSquare()
public Rect2f scale(float scale)
scale - The scale factorpublic Rect2f scale(float scaleX, float scaleY)
scaleX - The scale factor for the x directionscaleY - The scale factor for the y directionpublic boolean intersects(Rect2f rect)
rect - The other rectanglepublic boolean contains(Rect2f rect)
rect - The other rectangle