public interface Point
Modifier and Type | Method and Description |
---|---|
static Point |
empty()
Returns an empty
Point that has x and y values set to zero. |
static Point |
of(int x,
int y)
Returns the
Point instance for the given x and y values. |
default int |
x()
Returns the horizontal coordinate.
|
default int |
y()
Returns the vertical coordinate.
|