Interface Point2i
- All Known Implementing Classes:
Vector2i
public interface Point2i
An interface that represents a point in 2D space using integers.
- Since:
- 2.0.0
-
Method Summary
-
Method Details
-
x
int x()Gets the first coordinate of the position.- Returns:
- x (first) integer coordinate
- Since:
- 2.0.0
-
setX
void setX(int x) Sets the value of the first coordinate.- Parameters:
x
- new value of x (first) coordinate as an integer- Since:
- 2.0.0
-
y
int y()Gets the second coordinate of the position.- Returns:
- y (second) integer coordinate
- Since:
- 2.0.0
-
setY
void setY(int y) Sets the value of the second coordinate.- Parameters:
y
- new value of y (second) coordinate as an integer- Since:
- 2.0.0
-