|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.spatial.geom.CoordPoint
com.ibm.spatial.geom.CoordPoint.Double
public static class CoordPoint.Double
The Double class defines a 2D CoordPoint specified in double precision coordinates.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.spatial.geom.CoordPoint |
---|
CoordPoint.Double, CoordPoint.DoubleZM, CoordPoint.Long, CoordPoint.LongZM |
Field Summary | |
---|---|
double |
x
The x coordinate of this CoordPoint. |
double |
y
The y coordinate of this CoordPoint. |
Constructor Summary | |
---|---|
CoordPoint.Double()
Constructs a new 2D (no z coordinate and measure) CoordPoint. |
|
CoordPoint.Double(CoordPoint point)
Constructs and initializes a CoordPoint from the coordinates of the specified CoordPoint. |
|
CoordPoint.Double(double x,
double y)
Constructs and initializes a CoordPoint from the specified coordinates. |
|
CoordPoint.Double(Point point)
Constructs and initializes a CoordPoint from the coordinates of the specified OGC Point. |
Method Summary | |
---|---|
double |
getM()
Returns the measure associated to this CoordPoint. |
double |
getX()
Returns the X coordinate of this CoordPoint. |
double |
getY()
Returns the Y coordinate of this CoordPoint. |
double |
getZ()
Returns the Z coordinate of this CoordPoint. |
boolean |
isEmpty()
Tests whether this CoordPoint is empty. |
void |
setCoord(double x,
double y)
Sets the coordinates of this CoordPoint to the specified values. |
void |
setCoordAt(int n,
double value)
Sets the coordinate specified by index n with the value specified by value, where n=0 corresponds to x, n=1 to y, n=2 to z, and n=3 to m. |
void |
setEmpty()
Sets this CoordPoint to be empty. |
Methods inherited from class com.ibm.spatial.geom.CoordPoint |
---|
clone, equals, equals, getCoordAt, hashCode, hasM, hasZ, setCoord, setM, setZ, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public double x
public double y
Constructor Detail |
---|
public CoordPoint.Double()
public CoordPoint.Double(double x, double y)
x
- the x coordinate value of the newly constructed
CoordPointy
- the y coordinate value of the newly constructed
CoordPointpublic CoordPoint.Double(CoordPoint point)
point
- the CoordPoint to be used for the newly constructed
CoordPoint initializationpublic CoordPoint.Double(Point point)
point
- the OGC Point to be used for the newly constructed
CoordPoint initializationMethod Detail |
---|
public double getX()
getX
in class CoordPoint
public double getY()
getY
in class CoordPoint
public double getZ()
getZ
in class CoordPoint
public double getM()
getM
in class CoordPoint
public void setCoordAt(int n, double value)
setCoordAt
in class CoordPoint
n
- the measure value
java.lang.IndexOutOfBoundsException
- id n < 0 or n > 3public void setCoord(double x, double y)
setCoord
in class CoordPoint
x
- the x coordinate valuey
- the y coordinate valuepublic void setEmpty()
setEmpty
in class CoordPoint
public boolean isEmpty()
isEmpty
in class CoordPoint
|
Spatial DataBlade JAVA API v8.21 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |