|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.model.spatialschema.PositionImpl
public 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 | |
|---|---|
protected |
PositionImpl()
constructor. initializes a point to the coordinate 0/0 |
protected |
PositionImpl(double[] coords)
constructor. |
protected |
PositionImpl(double x,
double y)
constructor |
protected |
PositionImpl(double x,
double y,
double z)
constructor |
protected |
PositionImpl(javax.vecmath.Point3d other)
Constructor from another point3d |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object other)
|
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. |
javax.vecmath.Point3d |
getAsPoint3d()
|
int |
getCoordinateDimension()
|
double |
getX()
|
double |
getY()
|
double |
getZ()
|
void |
setAccuracy(double accuracy)
|
java.lang.String |
toString()
|
void |
translate(double[] d)
translate the point by the submitted values. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected PositionImpl()
protected PositionImpl(double x,
double y)
x - x-value of the pointy - y-value of the point
protected PositionImpl(double x,
double y,
double z)
x - x-value of the pointy - y-value of the pointz - z-value of the pointprotected PositionImpl(double[] coords)
coords - the Coordinates from which the position is build.protected PositionImpl(javax.vecmath.Point3d other)
other - the Coordinates from which the position is build if null the default values 0,0,0 with
a dim of 3 is assumed.| Method Detail |
|---|
public int getCoordinateDimension()
getCoordinateDimension in interface Positionpublic java.lang.Object clone()
clone in class java.lang.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)
translate in interface Positiond - public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic double getAccuracy()
Position
getAccuracy in interface Positionpublic void setAccuracy(double accuracy)
setAccuracy in interface Positionaccuracy - Position.getAccuracy()public java.lang.String toString()
toString in class java.lang.Objectpublic final javax.vecmath.Point3d getAsPoint3d()
getAsPoint3d in interface Position
|
deegree 2.5 (2011/06/29 09:44 build-8-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://www.deegree.org