Class PointD


  • public final class PointD
    extends java.lang.Object
    Holds x and y coordinates of type double.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double x
      The x coordinate
      double y
      The y coordinate
    • Constructor Summary

      Constructors 
      Constructor Description
      PointD​(double x, double y)
      Initializes this PointD with the provided x- and y-coordinates
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • x

        public double x
        The x coordinate
      • y

        public double y
        The y coordinate
    • Constructor Detail

      • PointD

        public PointD​(double x,
                      double y)
        Initializes this PointD with the provided x- and y-coordinates
        Parameters:
        x - the x coordinate
        y - the y coordinate
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object