|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.sdoapi.geom.CoordPointImpl
CoordPointImpl is a helper class that represents a coordinate point. A coordinate point is not a geometric entity, but it is a conceptual part of a non-point geometric object such as a line string.
Unlike a geometric point that contains additional information (like spatial reference system ID), a coordinate point only contains x, y, z coordinates for us to define geometry access/operation interfaces upon.
Field Summary | |
double |
m_x
m_x, m_y, and m_z represent the x, y, z coordinates of this coordinate point, and these are the only attributes that this point object has. |
double |
m_y
m_x, m_y, and m_z represent the x, y, z coordinates of this coordinate point, and these are the only attributes that this point object has. |
double |
m_z
m_x, m_y, and m_z represent the x, y, z coordinates of this coordinate point, and these are the only attributes that this point object has. |
Constructor Summary | |
CoordPointImpl()
Constructs a default coordinate point. |
|
CoordPointImpl(CoordPoint point)
Copy constructor. |
|
CoordPointImpl(double x,
double y)
Constructs a coordinate point at (x, y, NaN). |
|
CoordPointImpl(double x,
double y,
double z)
Constructs a coordinate point at (x, y, z). |
|
CoordPointImpl(Point point)
Constructs a coordinate point at the given geometric point. |
Method Summary | |
java.lang.Object |
clone()
Clones this coordinate point to generate another coordinate point object. |
boolean |
equals(CoordPoint point)
Determines if this coordinate point is equal to the input coordinate point. |
double |
getOrd(int i)
Gets the i-th ordinate of this coordinate point. |
double |
getX()
Gets the x coordinate of this point. |
double |
getY()
Gets the y coordinate of this point. |
double |
getZ()
Gets the z coordinate of this point. |
void |
move(CoordPoint offsetPoint)
Moves this coordinate point according to the input offsets. |
void |
move(double offsetX,
double offsetY)
Moves this coordinate point according to the input offsets. |
void |
move(double offsetX,
double offsetY,
double offsetZ)
Moves this coordinate point according to the input offsets. |
void |
setCoord()
Sets this coordinate point to (Double.NaN, Double.NaN, Double.NaN). |
void |
setCoord(CoordPoint point)
Sets this coordinate point to the location of another coordinate point. |
void |
setCoord(double x,
double y)
Sets this coordinate point to (x, y, Double.NaN). |
void |
setCoord(double x,
double y,
double z)
Sets this coordinate point to (x, y, z). |
void |
setCoord(Point point)
Sets this coordinate point to the location of a geometric point. |
void |
setOrd(double ord,
int i)
Sets the i-th ordinate of this coordinate point. |
void |
setX(double x)
Sets the x coordinate for this point. |
void |
setY(double y)
Sets the y coordinate for this point. |
void |
setZ(double z)
Sets the z coordinate for this point. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double m_x
public double m_y
public double m_z
Constructor Detail |
public CoordPointImpl()
public CoordPointImpl(double x, double y)
x
- x coordinate of the coordinate pointy
- y coordinate of the coordinate pointpublic CoordPointImpl(double x, double y, double z)
x
- x coordinate of the coordinate pointy
- y coordinate of the coordinate pointz
- z coordinate of the coordinate pointpublic CoordPointImpl(CoordPoint point)
public CoordPointImpl(Point point)
Method Detail |
public final double getX()
getX
in interface CoordPoint
public final double getY()
getY
in interface CoordPoint
public final double getZ()
getZ
in interface CoordPoint
public final double getOrd(int i)
getOrd
in interface CoordPoint
i
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public final void setX(double x)
setX
in interface CoordPoint
x
- the new x coordinate of this pointpublic final void setY(double y)
setY
in interface CoordPoint
y
- the new y coordinate of this pointpublic final void setZ(double z)
setZ
in interface CoordPoint
z
- the new z coordinate of this pointpublic final void setOrd(double ord, int i)
setOrd
in interface CoordPoint
ord
- the new value of the i-th ordinate of this coordinate pointi
- the 0-based index of the ordinates. For example,
i = 0 means the first dimension (or x by convention), etc.public final void setCoord()
setCoord
in interface CoordPoint
public final void setCoord(double x, double y)
setCoord
in interface CoordPoint
x
- x coordinate of the coordinate pointy
- y coordinate of the coordinate pointpublic final void setCoord(double x, double y, double z)
setCoord
in interface CoordPoint
x
- x coordinate of the coordinate pointy
- y coordinate of the coordinate pointz
- z coordinate of the coordinate pointpublic final void setCoord(CoordPoint point)
setCoord
in interface CoordPoint
public final void setCoord(Point point)
setCoord
in interface CoordPoint
public final void move(double offsetX, double offsetY)
move
in interface CoordPoint
offsetX
- offset along the x directionoffsetY
- offset along the y directionpublic final void move(double offsetX, double offsetY, double offsetZ)
move
in interface CoordPoint
offsetX
- offset along the x directionoffsetY
- offset along the y directionoffsetZ
- offset along the z directionpublic final void move(CoordPoint offsetPoint)
move
in interface CoordPoint
offsetPoint
- the coordinate point that contains offset valuespublic final boolean equals(CoordPoint point)
equals
in interface CoordPoint
point
- the input coordinate pointtrue
if this point has the same coordinates as the
input point;
false
otherwisepublic final java.lang.Object clone() throws java.lang.CloneNotSupportedException
CoordPoint
clone
in interface CoordPoint
clone
in class java.lang.Object
oracle.sdoapi.geom.CoordPoint
public final java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |