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