Package curve.point
Class FCoords
java.lang.Object
curve.point.FCoords
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getX()
Returns the x coordinate of the board point.int
getY()
Returns the y coordinate of the board point.void
setX
(int fx) Sets the x coordinate of the board point.void
setXY
(int fx, int fy) Sets the x and y coordinate of the screen point.void
setY
(int fy) Sets the y coordinate of the board point.
-
Field Details
-
fx
public int fxThe horizontal board position of a dot -
fy
public int fyThe vertical board position of a dot
-
-
Constructor Details
-
FCoords
public FCoords(int fx, int fy) constructor - mother of all points- Parameters:
fx
- -fy
- -
-
-
Method Details
-
getX
public int getX()Returns the x coordinate of the board point.- Returns:
- the horizontal board position
-
getY
public int getY()Returns the y coordinate of the board point.- Returns:
- the vertical board position
-
setX
public void setX(int fx) Sets the x coordinate of the board point.- Parameters:
fx
- the horizontal board position
-
setY
public void setY(int fy) Sets the y coordinate of the board point.- Parameters:
fy
- the vertical board position
-
setXY
public void setXY(int fx, int fy) Sets the x and y coordinate of the screen point.- Parameters:
fx
- the horizontal screen positionfy
- the vertical screen position
-