Class Point


  • public final class Point
    extends java.lang.Object
    A 2-D point.

    Synchronization

    This class is not synchronized. Instances of this class either must not be shared across threads or the client must ensure threadsafety. Multiple instances of this class can coexist safely.
    • Field Summary

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

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

      • Methods inherited from class java.lang.Object

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

      • x

        public double x
      • y

        public double y
    • Constructor Detail

      • Point

        public Point​(double x,
                     double y)