Class Point2D


  • public class Point2D
    extends java.lang.Object
    Simple 2D point.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private double myX_  
      private double myY_  
    • Constructor Summary

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

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

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

      • myX_

        private final double myX_
      • myY_

        private final double myY_
    • Constructor Detail

      • Point2D

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

      • getX

        public double getX()
      • getY

        public double getY()
      • toString

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