Class Point3d

java.lang.Object
  |
  +--Point3d
All Implemented Interfaces:
java.lang.Cloneable

class Point3d
extends java.lang.Object
implements java.lang.Cloneable

Author:
Erhan Oztop, 2001-2002

Source code by Erhan Oztop (erhan@atr.co.jp)
Copyright August 2002 via
University of Southern California Ph.D. publication copyright
3d point representation. Basis for most of 3d and Vector operations.

Field Summary
 int a
          projected screen coordinates
 int b
          projected screen coordinates
 double x
          3d coordinates
 double y
          3d coordinates
 double z
          3d coordinates
 
Constructor Summary
Point3d()
          Creates zero point/vector
Point3d(double xx, double yy, double zz)
          Creates the (xx,yy,zz) point/vector
 
Method Summary
 Point3d duplicate()
          Clones itself.
 java.lang.String nstr()
           
 void set(Point3d p)
           
 java.lang.String str()
          Returns the string representation of the point
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

x

public double x
3d coordinates

y

public double y
3d coordinates

z

public double z
3d coordinates

a

public int a
projected screen coordinates

b

public int b
projected screen coordinates
Constructor Detail

Point3d

public Point3d()
Creates zero point/vector

Point3d

public Point3d(double xx,
               double yy,
               double zz)
Creates the (xx,yy,zz) point/vector
Method Detail

str

public java.lang.String str()
Returns the string representation of the point

duplicate

public Point3d duplicate()
Clones itself. Note that a and b fields are not properly cloned.

set

public void set(Point3d p)

nstr

public java.lang.String nstr()