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