Package cammons

Class TPoint


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

      Fields 
      Modifier and Type Field Description
      static java.util.Comparator byX  
      static java.util.Comparator byY  
      int x  
      int y  
      int z  
    • Constructor Summary

      Constructors 
      Constructor Description
      TPoint()
      Creates a new instance of TPoint
      TPoint​(int x, int y)  
      TPoint​(int x, int y, int z)  
    • Field Detail

      • x

        public int x
      • y

        public int y
      • z

        public int z
      • byX

        public static java.util.Comparator byX
      • byY

        public static java.util.Comparator byY
    • Constructor Detail

      • TPoint

        public TPoint()
        Creates a new instance of TPoint
      • TPoint

        public TPoint​(int x,
                      int y)
      • TPoint

        public TPoint​(int x,
                      int y,
                      int z)
    • Method Detail

      • toString

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

        public double distance2D​(TPoint p)
      • getLeft

        public int getLeft()
      • getTop

        public int getTop()
      • clone

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