math
Class Point3D

java.lang.Object
  extended by math.Vector
      extended by math.Point3D

public class Point3D
extends Vector

a 3 dimensional point


Field Summary
 
Fields inherited from class math.Vector
w, x, y, z
 
Constructor Summary
Point3D()
          standard constructor
Point3D(double x, double y, double z)
          constructor
Point3D(Point3D p)
          copy constructor
Point3D(Point3D p, Vector3D v)
          new point is point + vector
 
Method Summary
 void set(double x_, double y_, double z_)
           
 void set(Point3D p)
           
 
Methods inherited from class math.Vector
dot, normalize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Point3D

public Point3D(double x,
               double y,
               double z)
constructor

Parameters:
x - [in] x coordinate
y - [in] y coordinate
z - [in] z coordinate

Point3D

public Point3D(Point3D p)
copy constructor

Parameters:
p - [in] other point

Point3D

public Point3D(Point3D p,
               Vector3D v)
new point is point + vector

Parameters:
p - [in] point
v - [in] vector

Point3D

public Point3D()
standard constructor

Method Detail

set

public void set(double x_,
                double y_,
                double z_)

set

public void set(Point3D p)