|
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.Object org.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 pointprotected 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 Position
public java.lang.Object clone()
clone
in class java.lang.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)
translate
in interface Position
d
- public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public double getAccuracy()
Position
getAccuracy
in interface Position
public void setAccuracy(double accuracy)
setAccuracy
in interface Position
accuracy
- Position.getAccuracy()
public java.lang.String toString()
toString
in class java.lang.Object
public 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