Class Vector2i
java.lang.Object
io.github.shimeoki.jfx.rasterization.Vector2i
- All Implemented Interfaces:
Point2i
Standard implementation of the
Point2i
.- Since:
- 2.0.0
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Vector2i
public Vector2i(int x, int y) Creates a new instance ofVector2i
.- Parameters:
x
- initial value of x (first) coordinatey
- initial value of y (second) coordinate- Since:
- 2.0.0
-
-
Method Details
-
x
public int x()Description copied from interface:Point2i
Gets the first coordinate of the position. -
setX
public void setX(int x) Description copied from interface:Point2i
Sets the value of the first coordinate. -
y
public int y()Description copied from interface:Point2i
Gets the second coordinate of the position. -
setY
public void setY(int y) Description copied from interface:Point2i
Sets the value of the second coordinate.
-