|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CoordPoint is a helper interface that represents a coordinate point. A coordinate point is not a geometric entity, but it is a conceptual part of a non-point geometric object such as a line string.
Unlike a geometric point that contains additional information (like spatial reference system information), a coordinate point only contains ordinate values and accessing methods.
Method Summary | |
java.lang.Object |
clone()
Clones this coordinate point to generate another coordinate point object. |
boolean |
equals(CoordPoint point)
Determines if this coordinate point equals to the input coordinate point. |
double |
getOrd(int i)
Gets the i-th ordinate of this coordinate point. |
double |
getX()
Gets the x ordinate of this coordinate point. |
double |
getY()
Gets the y ordinate of this coordinate point. |
double |
getZ()
Gets the z ordinate of this coordinate point. |
void |
move(CoordPoint offsetPoint)
Moves this coordinate point according to the input offsets. |
void |
move(double offsetX,
double offsetY)
Moves this coordinate point according to the input offsets. |
void |
move(double offsetX,
double offsetY,
double offsetZ)
Moves this coordinate point according to the input offsets. |
void |
setCoord()
Sets this coordinate point to (Double.NaN, Double.NaN, Double.NaN). |
void |
setCoord(CoordPoint point)
Sets this coordinate point to the location of another coordinate point. |
void |
setCoord(double x,
double y)
Sets this coordinate point to (x, y, Double.NaN). |
void |
setCoord(double x,
double y,
double z)
Sets this coordinate point to (x, y, z). |
void |
setCoord(Point point)
Sets this coordinate point to the location of a geometric point. |
void |
setOrd(double ord,
int i)
Sets the i-th ordinate of this coordinate point. |
void |
setX(double x)
Sets the x ordinate for this coordinate point. |
void |
setY(double y)
Sets the y ordinate for this coordinate point. |
void |
setZ(double z)
Sets the z ordinate for this coordinate point. |
Method Detail |
public double getX()
public double getY()
public double getZ()
public double getOrd(int i)
i
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public void setX(double x)
x
- the new x ordinate of this coordinate pointpublic void setY(double y)
y
- the new y ordinate of this coordinate pointpublic void setZ(double z)
z
- the new z ordinate of this coordinate pointpublic void setOrd(double ord, int i)
ord
- the new value of the i-th ordinate of this coordinate pointi
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public void setCoord()
public void setCoord(double x, double y)
x
- x coordinate of the coordinate pointy
- y coordinate of the coordinate pointpublic void setCoord(double x, double y, double z)
x
- x coordinate of the coordinate pointy
- y coordinate of the coordinate pointz
- z coordinate of the coordinate pointpublic void setCoord(CoordPoint point)
public void setCoord(Point point)
public void move(double offsetX, double offsetY)
offsetX
- offset along the x directionoffsetY
- offset along the y directionpublic void move(double offsetX, double offsetY, double offsetZ)
offsetX
- offset along the x directionoffsetY
- offset along the y directionoffsetZ
- offset along the z directionpublic void move(CoordPoint offsetPoint)
offsetPoint
- the coordinate point that contains offset valuespublic boolean equals(CoordPoint point)
point
- the input coordinate pointtrue
if this point has the same coordinates as the
input point;
false
otherwisepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |