Package | Description |
---|---|
pythagoras.d |
The Pythagoras geometry utility classes specialized on
double . |
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.
|
static Point |
Rectangles.closestInteriorPoint(IRectangle r,
IPoint p)
Computes and returns the point inside the bounds of the rectangle that's closest to the
given point.
|
static Point |
Rectangles.closestInteriorPoint(IRectangle r,
IPoint p,
Point out)
Computes the point inside the bounds of the rectangle that's closest to the given point,
writing the result into
out . |
boolean |
RectangularShape.contains(IRectangle rect) |
boolean |
Path.contains(IRectangle r) |
boolean |
IShape.contains(IRectangle r)
Returns true if this shape completely contains the supplied rectangle.
|
boolean |
Area.contains(IRectangle r) |
boolean |
AbstractQuadCurve.contains(IRectangle r) |
boolean |
AbstractLine.contains(IRectangle r) |
boolean |
AbstractCubicCurve.contains(IRectangle r) |
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 |
RectangularShape.intersects(IRectangle rect) |
boolean |
Path.intersects(IRectangle r) |
boolean |
IShape.intersects(IRectangle r)
Returns true if this shape intersects the supplied rectangle.
|
boolean |
Area.intersects(IRectangle r) |
boolean |
AbstractQuadCurve.intersects(IRectangle r) |
boolean |
AbstractLine.intersects(IRectangle r) |
boolean |
AbstractCubicCurve.intersects(IRectangle r) |
static double |
Rectangles.pointRectDistance(IRectangle r,
IPoint p)
Returns the Euclidean distance between the given point and the nearest point inside the
bounds of the given rectangle.
|
static double |
Rectangles.pointRectDistanceSq(IRectangle r,
IPoint p)
Returns the squared Euclidean distance between the given point and the nearest point inside
the bounds of the given rectangle.
|
void |
Arc.setArc(IRectangle rect,
double start,
double extent,
int type)
Sets the location, size, angular extents, and closure type of this arc to the specified
values.
|
void |
Rectangle.setBounds(IRectangle r)
Sets the bounds of this rectangle to those of the supplied rectangle.
|
void |
RectangularShape.setFrame(IRectangle r)
Sets the location and size of the framing rectangle of this shape to be equal to 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 |
---|
Arc(IRectangle bounds,
double start,
double extent,
int type)
Creates an arc of the specified type with the supplied framing rectangle, starting angle and
angular extent.
|
Rectangle(IRectangle r)
Constructs a rectangle with bounds equal to the supplied rectangle.
|
Copyright © 2017. All rights reserved.