|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.struc.DPoint3
Point in three dimensional space.
| Field Summary | |
double |
x
The x coordinate. |
double |
y
The y coordinate. |
double |
z
The z coordinate. |
| Constructor Summary | |
DPoint3()
Construct a zero point. |
|
DPoint3(double x,
double y,
double z)
Construct a point from the specified coordinates. |
|
DPoint3(DPoint3 p)
Copy constructor. |
|
| Method Summary | |
double |
angle2D(double x2,
double y2)
Calculates the absolute angle of the vector to the other point on the 2D plane. |
java.lang.Object |
clone()
Make an identical copy. |
double |
distance(DPoint3 p)
Calculates the distance between two points. |
boolean |
equals(java.lang.Object o)
Two points equal if their coordinates equal. |
java.lang.String |
toString()
Gets a string representation of the point |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public transient double x
public transient double y
public transient double z
| Constructor Detail |
public DPoint3()
public DPoint3(DPoint3 p)
p - the point to copy
public DPoint3(double x,
double y,
double z)
x - the x coordinatey - the y coordinatez - the z coordinate| Method Detail |
public boolean equals(java.lang.Object o)
o - the other point
public final double distance(DPoint3 p)
p - the other point
public final double angle2D(double x2,
double y2)
x2 - the other point's x coordinatey2 - the other point's y coordinate
public java.lang.Object clone()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||