Class DoublePoint


  • public class DoublePoint
    extends Tuple<java.lang.Double,​java.lang.Double>
    Author:
    rstein
    • Field Summary

      • Fields inherited from class de.gsi.dataset.spi.utils.Tuple

        x, y
    • Constructor Summary

      Constructors 
      Constructor Description
      DoublePoint()
      default constructor (zero coordinates)
      DoublePoint​(java.lang.Double x, java.lang.Double y)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double getX()  
      java.lang.Double getY()  
      void set​(double newX, double newY)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • DoublePoint

        public DoublePoint()
        default constructor (zero coordinates)
      • DoublePoint

        public DoublePoint​(java.lang.Double x,
                           java.lang.Double y)
        Parameters:
        x - coordinate
        y - coordinate
    • Method Detail

      • getX

        public java.lang.Double getX()
        Returns:
        the x coordinate
      • getY

        public java.lang.Double getY()
        Returns:
        the y coordinate
      • set

        public void set​(double newX,
                        double newY)
        Parameters:
        newX - the x coordinate to set
        newY - the Y coordinate to set
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Tuple<java.lang.Double,​java.lang.Double>