|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij3d.geom.Point3D
public class Point3D
Class Point3D Simple class for a point in 3D space
Constructor Summary | |
---|---|
Point3D()
Constructor for the Point3D object |
|
Point3D(double a,
double b,
double c)
Constructor for the Point3D object |
|
Point3D(Point3D P)
Constructor for the Point3D object |
Method Summary | |
---|---|
double |
distance(Point3D other)
Description of the Method |
double |
distanceSquare(Point3D other)
Description of the Method |
Point3D |
getPosition()
Gets the position attribute of the Point3D object |
Vector3D |
getVector3D()
Gets the vector3D attribute of the Point3D object |
double |
getX()
Get the value of x |
double |
getY()
Get the value of y |
double |
getZ()
Get the value of z |
void |
setX(double newVar)
Set the value of x |
void |
setY(double newVar)
Set the value of y |
void |
setZ(double newVar)
Set the value of z |
java.lang.String |
toString()
Description of the Method |
void |
translate(Vector3D v)
Description of the Method |
void |
xmlWrite(java.io.Writer wr)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Point3D()
public Point3D(double a, double b, double c)
a
- Description of the Parameterb
- Description of the Parameterc
- Description of the Parameterpublic Point3D(Point3D P)
P
- Description of the ParameterMethod Detail |
---|
public void setX(double newVar)
newVar
- the new value of xpublic double getX()
public void setY(double newVar)
newVar
- the new value of ypublic double getY()
public void setZ(double newVar)
newVar
- the new value of zpublic double getZ()
public Vector3D getVector3D()
public Point3D getPosition()
public void translate(Vector3D v)
v
- Description of the Parameterpublic double distance(Point3D other)
other
- Description of the Parameter
public double distanceSquare(Point3D other)
other
- Description of the Parameter
public java.lang.String toString()
toString
in class java.lang.Object
public void xmlWrite(java.io.Writer wr)
wr
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |