Package cammons

Class TPoint

java.lang.Object
cammons.TPoint

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

    Fields
    Modifier and Type
    Field
    Description
    static java.util.Comparator
     
    static java.util.Comparator
     
    int
     
    int
     
    int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance of TPoint
    TPoint(int x, int y)
     
    TPoint(int x, int y, int z)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.Object
     
    double
     
    int
     
    int
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • 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 Details

    • 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 Details

    • 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