| 
 | deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.PositionImpl
class PositionImpl
A sequence of decimals numbers which when written on a width are a sequence of coordinate positions. The width is derived from the CRS or coordinate dimension of the container.
-----------------------------------------------------------------------
| Constructor Summary | |
|---|---|
| PositionImpl()constructor. initializes a point to the coordinate 0/0 | |
| PositionImpl(double[] coords)constructor. | |
| PositionImpl(double x,
                         double y)constructor | |
| PositionImpl(double x,
                         double y,
                         double z)constructor | |
| Method Summary | |
|---|---|
|  Object | clone() | 
|  boolean | equals(Object other)compares if all field of other are equal to the corresponding fields of this position | 
|  double | getAccuracy()returns the accuracy the position is defined. | 
|  double[] | getAsArray()NOTE: The returned array always has a length of 3, regardless of the dimension. | 
|  int | getCoordinateDimension() | 
|  double | getX() | 
|  double | getY() | 
|  double | getZ() | 
|  void | setAccuracy(double accuracy) | 
|  String | toString() | 
|  void | translate(double[] d)translate the point by the submitted values. the dz- value will be ignored. | 
| Methods inherited from class java.lang.Object | 
|---|
| finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
PositionImpl()
PositionImpl(double x,
             double y)
x - x-value of the pointy - y-value of the point
PositionImpl(double x,
             double y,
             double z)
x - x-value of the pointy - y-value of the pointz - z-value of the pointPositionImpl(double[] coords)
coords - the Coordinates from which the position is build.| Method Detail | 
|---|
public int getCoordinateDimension()
getCoordinateDimension in interface Positionpublic Object clone()
clone in class Objectpublic double getX()
getX in interface Positionpublic double getY()
getY in interface Positionpublic double getZ()
getZ in interface Positionpublic double[] getAsArray()
Position
getAsArray in interface Positionpublic void translate(double[] d)
dz- value will be ignored.
translate in interface Positiond - public boolean equals(Object other)
equals in class Objectpublic double getAccuracy()
Position
getAccuracy in interface Positionpublic void setAccuracy(double accuracy)
setAccuracy in interface Positionaccuracy - getAccuracy()public String toString()
toString in class Object| 
 | deegree 2.2 (2008/12/22 11:33 build-3038-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
                                        For more information visit: http://deegree.sourceforge.net