Class Point


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

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

      Constructors 
      Constructor Description
      Point()  
      Point​(double[] vals)  
      Point​(double x, double y)  
    • Field Detail

      • x

        public double x
      • y

        public double y
    • Constructor Detail

      • Point

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

        public Point()
      • Point

        public Point​(double[] vals)
    • Method Detail

      • set

        public void set​(double[] vals)
      • clone

        public Point clone()
        Overrides:
        clone in class java.lang.Object
      • dot

        public double dot​(Point p)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • inside

        public boolean inside​(Rect r)
      • toString

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