|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.quantum.math.util.Point3D
public class Point3D
A class representing a point in 3D space.
| Constructor Summary | |
|---|---|
Point3D()
Creates a new instance of Point3D |
|
Point3D(double x,
double y,
double z)
Creates a new instance of Point3D |
|
| Method Summary | |
|---|---|
Point3D |
add(Point3D b)
addition of two points |
java.lang.Object |
clone()
i do some cloning business ;) |
double |
distanceFrom(Point3D point)
Simple method to find the distance between two points. |
double |
distanceSquaredFrom(Point3D point)
Simple method to find the distance2 between two points. |
boolean |
equals(java.lang.Object obj)
overloaded equals() method |
double |
getX()
Getter for property x. |
double |
getY()
Getter for property y. |
double |
getZ()
Getter for property z. |
int |
hashCode()
overriden hashCode() method |
Point3D |
mul(double k)
multiplication of this point with a constant k |
void |
setX(double x)
Setter for property x. |
void |
setY(double y)
Setter for property y. |
void |
setZ(double z)
Setter for property z. |
Point3D |
sub(Point3D b)
substraction of two points (this - b) |
java.lang.String |
toString()
overloaded toString() method. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Point3D()
public Point3D(double x,
double y,
double z)
x - DOCUMENT ME!y - DOCUMENT ME!z - DOCUMENT ME!| Method Detail |
|---|
public double getX()
public void setX(double x)
x - New value of property x.public double getY()
public void setY(double y)
y - New value of property y.public double getZ()
public void setZ(double z)
z - New value of property z.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - DOCUMENT ME!
public double distanceFrom(Point3D point)
point - - the point to which the distance is to be found
public double distanceSquaredFrom(Point3D point)
point - - the point to which the distance is to be found
public Point3D add(Point3D b)
b - : to be added to the current point
public Point3D mul(double k)
k - k : the constant to be multiplied to this point
public Point3D sub(Point3D b)
b - : to be substracted from the current point
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - DOCUMENT ME!public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||