Class Point


  • public class Point
    extends java.lang.Object
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getX()  
      double getY()  
      Point plus​(Vector v)  
      java.lang.String toString()
      Return a string representation of the point.
      • Methods inherited from class java.lang.Object

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

      • Point

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

      • getX

        public double getX()
      • getY

        public double getY()
      • toString

        public java.lang.String toString()
        Return a string representation of the point. Useful for printing it out onto the console.
        Overrides:
        toString in class java.lang.Object