Class PointF


  • public class PointF
    extends java.lang.Object
    Represents a point with float coordinates in 2D space.
    • Constructor Summary

      Constructors 
      Constructor Description
      PointF​(float x, float y)
      Constructs a point with given coordinates.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getX()
      Returns the x-coordinate of the point.
      float getY()
      Returns the y-coordinate of the point.
      void setX​(float x)
      Sets the x-coordinate of the point.
      void setY​(float y)
      Sets the y-coordinate of the point.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PointF

        public PointF​(float x,
                      float y)
        Constructs a point with given coordinates.
        Parameters:
        x - x-coordinate
        y - y-coordinate
    • Method Detail

      • getY

        public float getY()
        Returns the y-coordinate of the point.
        Returns:
        y-coordinate
      • setY

        public void setY​(float y)
        Sets the y-coordinate of the point.
        Parameters:
        y - y-coordinate
      • getX

        public float getX()
        Returns the x-coordinate of the point.
        Returns:
        x-coordinate
      • setX

        public void setX​(float x)
        Sets the x-coordinate of the point.
        Parameters:
        x - x-coordinate