|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Coordinates
The Coordinates interface provides the encapsulation of coordinates with more than two dimensions.
| Method Summary | |
|---|---|
boolean |
equals(Coordinates coordinates)
test if two coordinates are equal, that is, all of their components are equal. |
double |
getDistance(Coordinates coordinates)
get the distance between two coordinates. |
double |
getX()
get x coordinate |
double |
getY()
get y coordinate |
double |
getZ()
get z coordinate |
boolean |
isNeighbor(Coordinates coordinates)
check if the coordinates specified by the parameter are neighbor coordinates. |
void |
setX(double x)
set x coordinate |
void |
setY(double y)
set y coordinate |
void |
setZ(double z)
set z coordinate |
| Method Detail |
|---|
double getX()
void setX(double x)
x - double getY()
void setY(double y)
y - double getZ()
void setZ(double z)
z - double getDistance(Coordinates coordinates)
coordinates - the coordinates to get the distance from
boolean equals(Coordinates coordinates)
boolean isNeighbor(Coordinates coordinates)
coordinates - the coordinates to check neighborhood to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||