|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Double
lt.monarch.math.geom.Point2D
lt.monarch.math.geom.Point3D
public class Point3D extends Point2D
3D point
| Modifier and Type | Class and Description |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Point2D |
|---|
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
| Modifier and Type | Field and Description |
|---|---|
double |
z
|
| Fields inherited from class java.awt.geom.Point2D.Double |
|---|
x, y |
| Constructor and Description |
|---|
Point3D()
Point3D constructor |
Point3D(double x,
double y,
double z)
Point3D constructor |
Point3D(Point3D p)
Constructs a new Point3D using coordinate values of the specified point. |
| Modifier and Type | Method and Description |
|---|---|
Point3D |
clone()
|
boolean |
equals(java.lang.Object o)
|
double |
getZ()
Gets z coordinate |
void |
set(double x,
double y,
double z)
Sets the specified coordinate values to the point |
void |
set(Point3D p)
Set coordinate of point |
void |
setZ(double z)
Sets z coordinate |
java.lang.String |
toString()
Returns a string representation of this Point2D object. |
| Methods inherited from class lt.monarch.math.geom.Point2D |
|---|
set, setX, setY |
| Methods inherited from class java.awt.geom.Point2D.Double |
|---|
getX, getY, setLocation |
| Methods inherited from class java.awt.geom.Point2D |
|---|
distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface lt.monarch.math.geom.GeneralPoint |
|---|
getX, getY |
| Field Detail |
|---|
public double z
| Constructor Detail |
|---|
public Point3D(double x,
double y,
double z)
x - x coordinatey - y coordinatez - z coordinatepublic Point3D()
public Point3D(Point3D p)
Point3D using coordinate values of the specified point.
p - the Point3D to take coordinate values from| Method Detail |
|---|
public void set(Point3D p)
p - 3D pointpublic double getZ()
public void setZ(double z)
z - z coordinate
public void set(double x,
double y,
double z)
x - the x coordinate value; has to be in range [0,1]y - the y coordinate value; has to be in range [0,1]z - the z coordinate value; has to be in range [0,1]public java.lang.String toString()
Point2DPoint2D object.
toString in class Point2Dpublic Point3D clone()
clone in class java.awt.geom.Point2Dpublic boolean equals(java.lang.Object o)
equals in class java.awt.geom.Point2D
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||