| Constructor and Description | 
|---|
Cursor2D(int x,
        int y)
Creates a new cursor from two coordinates. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object other)  | 
double | 
euclideanDistance(Cursor2D c)
Calculate Euclidean distance to another cursor 
 | 
int | 
getX()  | 
int | 
getY()  | 
void | 
set(int x,
   int y)
Sets the position of this cursor. 
 | 
public Cursor2D(int x,
                int y)
x - the x-coordinatey - the y-coordinatepublic void set(int x,
                int y)
x - the new x-coordinatey - the new y-coordinatepublic int getX()
public int getY()
public double euclideanDistance(Cursor2D c)
c - cursor to calculate distance toCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.