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