public class XRectangle2D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
height |
double |
width |
double |
x |
double |
y |
Constructor and Description |
---|
XRectangle2D(double x,
double y,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(double xp,
double yp) |
boolean |
contains(XPoint2D point) |
double |
getCenterX() |
double |
getCenterY() |
double |
getHeight() |
double |
getMaxX() |
double |
getMaxY() |
double |
getMinX() |
double |
getMinY() |
double |
getWidth() |
double |
getX() |
double |
getY() |
XPoint2D |
intersect(XLine2D line) |
boolean |
intersects(XRectangle2D other) |
public final double x
public final double y
public final double width
public final double height
public XRectangle2D(double x, double y, double width, 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(XRectangle2D other)
public boolean contains(XPoint2D point)
public boolean contains(double xp, double yp)