Package armyc2.c5isr.graphics2d
Class Rectangle2D
java.lang.Object
armyc2.c5isr.graphics2d.Rectangle2D
- Direct Known Subclasses:
Rectangle2D.Double
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(double newx, double newy) boolean
contains
(double x1, double y1) boolean
contains
(int x, int y, int width, int height) boolean
boolean
contains
(Rectangle2D rect) double
double
getMaxX()
double
getMaxY()
double
getMinX()
double
getMinY()
double
getWidth()
double
getX()
double
getY()
boolean
intersects
(int x1, int y1, int width1, int height1) boolean
intersects
(Rectangle2D rect) boolean
intersectsLine
(Line2D line) boolean
isEmpty()
void
setRect
(double x1, double y1, double width1, double height1) void
-
Field Details
-
x
-
y
-
width
-
height
-
-
Constructor Details
-
Rectangle2D
protected Rectangle2D()
-
-
Method Details
-
add
-
createIntersection
-
createUnion
-
getX
-
getY
-
getMinX
-
getMinY
-
getMaxX
-
getMaxY
-
getHeight
-
getWidth
-
contains
-
intersects
-
intersects
-
contains
-
contains
-
intersectsLine
-
contains
-
isEmpty
-
setRect
-
setRect
-