ij3d.geom
Class Point3D

java.lang.Object
  extended by ij3d.geom.Point3D
Direct Known Subclasses:
ColorPoint3D, Pixel3D, Sphere3D, Vector3D

public class Point3D
extends java.lang.Object

Class Point3D Simple class for a point in 3D space

Author:
thomas

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

Point3D

public Point3D()
Constructor for the Point3D object


Point3D

public Point3D(double a,
               double b,
               double c)
Constructor for the Point3D object

Parameters:
a - Description of the Parameter
b - Description of the Parameter
c - Description of the Parameter

Point3D

public Point3D(Point3D P)
Constructor for the Point3D object

Parameters:
P - Description of the Parameter
Method Detail

setX

public void setX(double newVar)
Set the value of x

Parameters:
newVar - the new value of x

getX

public double getX()
Get the value of x

Returns:
the value of x

setY

public void setY(double newVar)
Set the value of y

Parameters:
newVar - the new value of y

getY

public double getY()
Get the value of y

Returns:
the value of y

setZ

public void setZ(double newVar)
Set the value of z

Parameters:
newVar - the new value of z

getZ

public double getZ()
Get the value of z

Returns:
the value of z

getVector3D

public Vector3D getVector3D()
Gets the vector3D attribute of the Point3D object

Returns:
The vector3D value

getPosition

public Point3D getPosition()
Gets the position attribute of the Point3D object

Returns:
The position value

translate

public void translate(Vector3D v)
Description of the Method

Parameters:
v - Description of the Parameter

distance

public double distance(Point3D other)
Description of the Method

Parameters:
other - Description of the Parameter
Returns:
Description of the Return Value

distanceSquare

public double distanceSquare(Point3D other)
Description of the Method

Parameters:
other - Description of the Parameter
Returns:
Description of the Return Value

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Return Value

xmlWrite

public void xmlWrite(java.io.Writer wr)
Parameters:
wr -