Package | Description |
---|---|
pythagoras.i |
The Pythagoras geometry utility classes specialized on
int . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRectangle
Provides most of the implementation of
IRectangle , obtaining only the location and
dimensions from the derived class. |
class |
Rectangle
Represents an area in two dimensions.
|
Modifier and Type | Method and Description |
---|---|
void |
Rectangle.add(IRectangle r)
Expands the bounds of this rectangle to contain the supplied rectangle.
|
boolean |
IShape.contains(IRectangle r)
Returns true if this shape completely contains the supplied rectangle.
|
boolean |
AbstractRectangle.contains(IRectangle rect) |
static void |
Rectangles.intersect(IRectangle src1,
IRectangle src2,
Rectangle dst)
Intersects the supplied two rectangles, writing the result into
dst . |
Rectangle |
IRectangle.intersection(IRectangle r)
Returns the intersection of the supplied rectangle and this rectangle (i.e.
|
Rectangle |
AbstractRectangle.intersection(IRectangle r) |
boolean |
IShape.intersects(IRectangle r)
Returns true if this shape intersects the supplied rectangle.
|
boolean |
AbstractRectangle.intersects(IRectangle rect) |
void |
Rectangle.setBounds(IRectangle r)
Sets the bounds of this rectangle to those of the supplied rectangle.
|
Rectangle |
IRectangle.union(IRectangle r)
Returns the union of the supplied rectangle and this rectangle (i.e.
|
Rectangle |
AbstractRectangle.union(IRectangle r) |
static void |
Rectangles.union(IRectangle src1,
IRectangle src2,
Rectangle dst)
Unions the supplied two rectangles, writing the result into
dst . |
Constructor and Description |
---|
Rectangle(IRectangle r)
Constructs a rectangle with bounds equal to the supplied rectangle.
|
Copyright © 2017. All rights reserved.