Package | Description |
---|---|
lab1package2 |
Modifier and Type | Method and Description |
---|---|
double |
Point2.distanceTo(Point2 other)
Returns the distance between this point and another point.
|
boolean |
Point2.similarTo(Point2 other,
double tol)
Determines if two points are almost equal (similar).
|
Constructor and Description |
---|
Point2(Point2 other)
Initialize a point to have the same coordinates as
other . |