Class Position
java.lang.Object
com.iizix.Position
- All Implemented Interfaces:
Serializable, Cloneable
A position with integers.
- Author:
- Christopher Mindus
- See Also:
Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
Field Details
x
public int xThe X position.y
public int yThe Y position.
Constructor Details
Position
public Position()Constructs a position initialized to 0,0.Position
public Position(int x, int y) Constructs and initializes position.- Parameters:
x- The X position.y- The Y position.
Position
Constructs and initializes position.- Parameters:
p- The position to clone.
Method Details
equals
hashCode
toString
compare