Package | Description |
---|---|
cse1030.drawing | |
cse1030.test2 |
Constructor and Description |
---|
Point2D(Point2D other)
Creates a point that has the same coordinates as another point.
|
Modifier and Type | Field and Description |
---|---|
protected Point2D |
Shape.position
The position of the center point of the bounding box.
|
Modifier and Type | Method and Description |
---|---|
Point2D |
Line.getPoint1()
Returns the first end point of the line.
|
Point2D |
Line.getPoint2()
Returns the second end point of the line.
|
Point2D |
Shape.getPosition()
Get the position of the center of the bounding box for the shape.
|
Constructor and Description |
---|
Circle(double r,
Point2D p)
Create a circle of radius
r and center point p . |
Line(Point2D p1,
Point2D p2)
Create a line with end points
p1 and p2 . |
Shape(double w,
double h,
Point2D p)
Constructs a shape having a bounding box with width
w ,
height h , and center position p . |