Class FPoint

java.lang.Object
   |
   +----FPoint

class FPoint
extends Object
The FPoint class represents a point in the plane.


Variable Index

 o EPSILON
This is the distance within which a point is considered equal to another one when the equals() method is called.
 o x
 o y

Constructor Index

 o FPoint(double, double)
Creates a point with the x and y coordinates.
 o FPoint(int, int)
Creates a point with the x and y integer coordinates.
 o FPoint(Point)
Creates a point equal to the given point.

Method Index

 o equals(FPoint)
Returns true if the point is equal to p, within distance EPSILON.
 o getPoint()
Returns a integer Point

Variables

 o EPSILON
 static double EPSILON
This is the distance within which a point is considered equal to another one when the equals() method is called.

 o x
 double x
 o y
 double y

Constructors

 o FPoint
 public FPoint(double x,
               double y)
Creates a point with the x and y coordinates.

 o FPoint
 public FPoint(int x,
               int y)
Creates a point with the x and y integer coordinates.

 o FPoint
 public FPoint(Point p)
Creates a point equal to the given point.

Methods

 o equals
 public boolean equals(FPoint p)
Returns true if the point is equal to p, within distance EPSILON.

 o getPoint
 public Point getPoint()
Returns a integer Point