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

    Modifier and Type
    Method
    Description
    void
    setX(float x)
    Sets the value of the first coordinate.
    void
    setY(float y)
    Sets the value of the second coordinate.
    float
    x()
    Gets the first coordinate of the position.
    float
    y()
    Gets the second coordinate of the position.
  • 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