Package com.tonic.vellum.geom
Class Point
- java.lang.Object
-
- com.tonic.vellum.geom.Point
-
public final class Point extends java.lang.ObjectAn immutable point in cell coordinates.
-
-
Constructor Summary
Constructors Constructor Description Point(int x, int y)Creates a point.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()intx()inty()
-
-
-
Method Detail
-
x
public int x()
- Returns:
- the x coordinate in cells
-
y
public int y()
- Returns:
- the y coordinate in cells
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-