public class XYWHRectangle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
h |
protected double |
w |
protected double |
x |
protected double |
y |
Constructor and Description |
---|
XYWHRectangle(double x,
double y,
double w,
double h) |
Modifier and Type | Method and Description |
---|---|
boolean |
coordinateEquals(double otherX,
double otherY,
double otherWidth,
double otherHeight) |
boolean |
equals(java.lang.Object o) |
double |
getH() |
double |
getW() |
double |
getX() |
double |
getY() |
int |
hashCode() |
protected final double x
protected final double y
protected final double w
protected final double h
public boolean coordinateEquals(double otherX, double otherY, double otherWidth, double otherHeight)
public double getX()
public double getY()
public double getW()
public double getH()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object