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