类 TracePoint
- java.lang.Object
-
- cc.chungkwong.mathocr.online.TracePoint
-
public class TracePoint extends Object
Point- 作者:
- Chan Chung Kwong
-
-
构造器概要
构造器 构造器 说明 TracePoint(int x, int y)Create a point
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(Object obj)static TracePointfromIndex(int index, int width)static intgetDistanceSquare(TracePoint p, TracePoint q)intgetX()intgetY()inthashCode()inttoIndex(int width)StringtoString()
-
-
-
方法详细资料
-
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 imagewidth- width of the image- 返回:
- the point
-
getDistanceSquare
public static int getDistanceSquare(TracePoint p, TracePoint q)
-
-