Class Point

    • Field Summary

      Fields 
      Modifier and Type Field Description
      double x
      The X value (horizontal coordinate).
      double y
      The Y value (vertical coordinate).
    • Constructor Summary

      Constructors 
      Constructor Description
      Point()
      Constructor.
      Point​(double x, double y)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      double getX()
      Gets x
      double getY()
      Gets y
      int hashCode()  
      void setX​(double x)
      Sets x
      void setY​(double y)
      Sets y
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        public double x

        The X value (horizontal coordinate).

      • y

        public double y

        The Y value (vertical coordinate).

    • Constructor Detail

      • Point

        public Point()
        Constructor.
      • Point

        public Point​(double x,
                     double y)
    • Method Detail

      • getX

        public double getX()
        Gets x
      • setX

        public void setX​(double x)
        Sets x
      • getY

        public double getY()
        Gets y
      • setY

        public void setY​(double y)
        Sets y
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object