| Package | Description |
|---|---|
| cse1030.drawing | |
| cse1030.test2 |
| Modifier and Type | Method and Description |
|---|---|
double |
Point2D.distanceTo(Point2D other)
Returns the distance between this point and some other point.
|
| 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 |
PointMatcher.point
The point stored by the
PointMatcher |
| Modifier and Type | Method and Description |
|---|---|
Point2D |
PointMatcher.getPoint()
Get the point that this
PointMatcher object uses to define the
matching criteria. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
PointMatcher.matches(Point2D other)
Checks whether or not the point
other matches the point held
by this PointMatcher. |
boolean |
PointLeftOf.matches(Point2D other)
Checks whether or not the given point
other is strictly to the
left of the point held by this object. |
boolean |
PointInSquare.matches(Point2D other)
Checks if the point
other is strictly inside the square
neighbourhood surrounding the point held by this matcher. |
void |
PointMatcher.setPoint(Point2D p)
Set the point that this
PointMatcher object uses to define the
matching criteria. |
| Constructor and Description |
|---|
PointInSquare(Point2D p,
double halfLength)
Creates an object that matches all points strictly within a square
neighbourhood surrounding the point
p. |
PointLeftOf(Point2D p)
Creates an object that matches all points that are strictly to the left of
p. |
PointMatcher(Point2D p)
Creates a
PointMatcher object using the given point
p. |