Class FPoint
java.lang.Object
|
+----FPoint
- class FPoint
- extends Object
The FPoint class represents a point in the plane.
-
EPSILON
- This is the distance within which a point is considered
equal to another one when the equals() method is called.
-
x
-
-
y
-
-
FPoint(double, double)
- Creates a point with the x and y coordinates.
-
FPoint(int, int)
- Creates a point with the x and y integer coordinates.
-
FPoint(Point)
- Creates a point equal to the given point.
-
equals(FPoint)
- Returns true if the point is equal to p, within distance EPSILON.
-
getPoint()
- Returns a integer Point
EPSILON
static double EPSILON
- This is the distance within which a point is considered
equal to another one when the equals() method is called.
x
double x
y
double y
FPoint
public FPoint(double x,
double y)
- Creates a point with the x and y coordinates.
FPoint
public FPoint(int x,
int y)
- Creates a point with the x and y integer coordinates.
FPoint
public FPoint(Point p)
- Creates a point equal to the given point.
equals
public boolean equals(FPoint p)
- Returns true if the point is equal to p, within distance EPSILON.
getPoint
public Point getPoint()
- Returns a integer Point