|
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 pointPositionImpl(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 Position
public Object clone()
clone
in class Object
public double getX()
getX
in interface Position
public double getY()
getY
in interface Position
public double getZ()
getZ
in interface Position
public double[] getAsArray()
Position
getAsArray
in interface Position
public void translate(double[] d)
dz
- value will be ignored.
translate
in interface Position
d
- public boolean equals(Object other)
equals
in class Object
public double getAccuracy()
Position
getAccuracy
in interface Position
public void setAccuracy(double accuracy)
setAccuracy
in interface Position
accuracy
- 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