类 TracePoint


  • public class TracePoint
    extends Object
    Point
    作者:
    Chan Chung Kwong
    • 构造器详细资料

      • TracePoint

        public TracePoint​(int x,
                          int y)
        Create a point
        参数:
        x - the x coordinate
        y - the y coordinate
    • 方法详细资料

      • getX

        public int getX()
        返回:
        the x coordinate
      • getY

        public int getY()
        返回:
        the y coordinate
      • toIndex

        public int toIndex​(int width)
        参数:
        width - width of the image
        返回:
        index of the point in the image
      • fromIndex

        public static TracePoint fromIndex​(int index,
                                           int width)
        参数:
        index - index of the point in the image
        width - width of the image
        返回:
        the point
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object