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