|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.shlublu.javax.math.Point3D
Creation : 2002/03/23 Class dedicated to implement 3D point operations
| Field Summary | |
double |
x
x coordinate |
double |
y
y coordinate |
double |
z
z coordinate |
| Constructor Summary | |
Point3D()
Empty constructor, init to (.0, .0, .0) |
|
Point3D(double dblX,
double dblY,
double dblZ)
Constructor, init to the given arguments |
|
Point3D(Point3D p)
Constructor, init to the given point |
|
| Method Summary | |
java.lang.Object |
clone()
Return a Point3D equals() to this one |
boolean |
equals(java.lang.Object o)
True if o is not null, from the Point3D class without beeing from a subclass, and have the same coordinates in the same order than this. |
double |
getDistanceTo(Point3D pt)
Get the distance between this and the given Point |
Point3D |
getTranslated(Vector3D v)
Get the point corresponding to this translated by the given vector |
Vector3D |
getVector()
Get the Vector corresponding to the translation from the origin to this Point |
Vector3D |
getVectorTo(Point3D pt)
Get the vector between this and the given Point |
java.lang.String |
toString()
Get this point as a string |
void |
translate(Vector3D v)
Translate this point using the given vector |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public double x
public double y
public double z
| Constructor Detail |
public Point3D()
public Point3D(double dblX,
double dblY,
double dblZ)
public Point3D(Point3D p)
| Method Detail |
public java.lang.String toString()
toString in interface PointtoString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface Pointequals in class java.lang.Objectpublic java.lang.Object clone()
equals()to this one
clone in interface Pointclone in class java.lang.Objectpublic Vector3D getVector()
public void translate(Vector3D v)
public Point3D getTranslated(Vector3D v)
public double getDistanceTo(Point3D pt)
public Vector3D getVectorTo(Point3D pt)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||