public class TracePoint extends Object
| 构造器和说明 |
|---|
TracePoint(int x,
int y)
Create a point
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object obj) |
static TracePoint |
fromIndex(int index,
int width) |
static int |
getDistanceSquare(TracePoint p,
TracePoint q) |
int |
getX() |
int |
getY() |
int |
hashCode() |
int |
toIndex(int width) |
String |
toString() |
public TracePoint(int x,
int y)
x - the x coordinatey - the y coordinatepublic int getX()
public int getY()
public int toIndex(int width)
width - width of the imagepublic static TracePoint fromIndex(int index, int width)
index - index of the point in the imagewidth - width of the imagepublic static int getDistanceSquare(TracePoint p, TracePoint q)
Copyright © 2019. All rights reserved.