public class OvusculeSnake2DNode extends DoublePoint
DoublePoint by
additional state variables.| Modifier and Type | Field and Description |
|---|---|
boolean |
frozen
Methods of the class
OvusculeSnake2DKeeper are allowed
to modify OvusculeSnake2DNode objects only if their
frozen flag is set to false. |
boolean |
hidden
Methods of the class
OvusculeSnake2DKeeper are allowed
to interactively display (as a cross) the nodes stored in
OvusculeSnake2DNode objects only if their
hidden flag is set to false. |
x, y| Constructor and Description |
|---|
OvusculeSnake2DNode(double x,
double y)
This constructor builds a point that is initially neither frozen nor hidden.
|
OvusculeSnake2DNode(double x,
double y,
boolean frozen,
boolean hidden)
This constructor builds a point with the given initial values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
Add, Add, Add, DistanceTo, Divide, Divide, Divide, equals, hashCode, Multiply, Multiply, Multiply, setXY, Subtract, Subtract, Subtract, Swap, toFloatPoint, toIntPointpublic boolean frozen
OvusculeSnake2DKeeper are allowed
to modify OvusculeSnake2DNode objects only if their
frozen flag is set to false.public boolean hidden
OvusculeSnake2DKeeper are allowed
to interactively display (as a cross) the nodes stored in
OvusculeSnake2DNode objects only if their
hidden flag is set to false.public OvusculeSnake2DNode(double x,
double y)
x - The horizontal coordinate.y - The vertical coordinate.public OvusculeSnake2DNode(double x,
double y,
boolean frozen,
boolean hidden)
x - The horizontal coordinate.y - The vertical coordinate.frozen - Set to false to allow methods of the class
OvusculeSnake2DKeeper to modify this point. Set to
true otherwise.hidden - Set to false to allow methods of the class
OvusculeSnake2DKeeper to display this point. Set to
true otherwise.public java.lang.String toString()
toString in class DoublePoint