Package com.fizzed.crux.util
Class Rect2D
- java.lang.Object
-
- com.fizzed.crux.util.Rect2D
-
public class Rect2D extends java.lang.ObjectSimple utility immutable class to represent x, y, width, and height in 2D space and not rely on the awful Java AWT Rectangle class.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intceilHeight()intceilWidth()intceilX()intceilY()intfloorHeight()intfloorWidth()intfloorX()intfloorY()doublegetHeight()doublegetWidth()doublegetX()doublegetY()Rect2Dplus(double x, double y, double width, double height)Rect2Dplus(Rect2D rect)Rect2DplusHeight(double height)Rect2DplusWidth(double width)Rect2DplusX(double x)Rect2DplusY(double y)
-
-
-
Constructor Detail
-
Rect2D
public Rect2D(double x, double y, double width, double height)
-
Rect2D
public Rect2D(double x, double y, Size2D size)
-
-
Method Detail
-
getX
public double getX()
-
getY
public double getY()
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
plusX
public Rect2D plusX(double x)
-
plusY
public Rect2D plusY(double y)
-
plusWidth
public Rect2D plusWidth(double width)
-
plusHeight
public Rect2D plusHeight(double height)
-
plus
public Rect2D plus(double x, double y, double width, double height)
-
ceilX
public int ceilX()
-
ceilY
public int ceilY()
-
ceilWidth
public int ceilWidth()
-
ceilHeight
public int ceilHeight()
-
floorX
public int floorX()
-
floorY
public int floorY()
-
floorWidth
public int floorWidth()
-
floorHeight
public int floorHeight()
-
-