public class Rectangle2D extends java.lang.Object implements Shape
Modifier and Type | Class and Description |
---|---|
static class |
Rectangle2D.Double |
Modifier and Type | Field and Description |
---|---|
double |
height |
double |
width |
double |
x |
double |
y |
Constructor and Description |
---|
Rectangle2D(double x,
double y,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Point2D point) |
double |
getCenterX() |
double |
getCenterY() |
double |
getHeight() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
double |
getWidth() |
double |
getX() |
double |
getY() |
boolean |
intersects(Rectangle2D rectangle) |
public final double x
public final double y
public final double width
public final double height
public double getWidth()
public double getHeight()
public double getX()
public double getY()
public double getCenterX()
public double getCenterY()
public double getMinX()
public double getMaxX()
public double getMinY()
public double getMaxY()
public boolean intersects(Rectangle2D rectangle)
public boolean contains(Point2D point)