quickhull3d
Class Point3d

java.lang.Object
  extended by quickhull3d.Vector3d
      extended by quickhull3d.Point3d

public class Point3d
extends Vector3d

A three-element spatial point. The only difference between a point and a vector is in the the way it is transformed by an affine transformation. Since the transform method is not included in this reduced implementation for QuickHull3D, the difference is purely academic.

Author:
John E. Lloyd, Fall 2004

Field Summary
 
Fields inherited from class quickhull3d.Vector3d
x, y, z
 
Constructor Summary
Point3d()
          Creates a Point3d and initializes it to zero.
Point3d(double x, double y, double z)
          Creates a Point3d with the supplied element values.
Point3d(Vector3d v)
          Creates a Point3d by copying a vector
 
Method Summary
 
Methods inherited from class quickhull3d.Vector3d
add, add, cross, distance, distanceSquared, dot, get, norm, normalize, normSquared, scale, scale, set, set, set, setZero, sub, sub, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Point3d

public Point3d()
Creates a Point3d and initializes it to zero.


Point3d

public Point3d(Vector3d v)
Creates a Point3d by copying a vector

Parameters:
v - vector to be copied

Point3d

public Point3d(double x,
               double y,
               double z)
Creates a Point3d with the supplied element values.

Parameters:
x - first element
y - second element
z - third element