RdcPanda
Class Cartesian

java.lang.Object
  extended by RdcPanda.Cartesian

public class Cartesian
extends java.lang.Object

This class defines Cartesian coordinates for individual atom in protein structure. Written by Lincong Wang (2001-2005).


Constructor Summary
Cartesian()
          Instantiates a new cartesian.
Cartesian(java.lang.String aa, double[] c)
          Instantiates a new cartesian.
Cartesian(java.lang.String aa, double X, double Y, double Z)
          Instantiates a new cartesian.
 
Method Summary
 java.lang.String getAtom()
          Gets the atom name.
 double getX()
          Gets the x.
 double[] getXYZ()
          Gets the xYZ.
 double getY()
          Gets the y.
 double getZ()
          Gets the z.
 double measureDist(Cartesian ccA, Cartesian ccB)
          Measure distance between points in 3D.
 void setAtom(java.lang.String aName)
          Sets the atom name.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Cartesian

public Cartesian()
Instantiates a new cartesian.


Cartesian

public Cartesian(java.lang.String aa,
                 double X,
                 double Y,
                 double Z)
Instantiates a new cartesian.

Parameters:
aa - the aa
X - the x
Y - the y
Z - the z

Cartesian

public Cartesian(java.lang.String aa,
                 double[] c)
Instantiates a new cartesian.

Parameters:
aa - the aa
c - the c
Method Detail

getAtom

public java.lang.String getAtom()
Gets the atom name.

Returns:
the atom

getX

public double getX()
Gets the x.

Returns:
the x

getY

public double getY()
Gets the y.

Returns:
the y

getZ

public double getZ()
Gets the z.

Returns:
the z

setAtom

public void setAtom(java.lang.String aName)
Sets the atom name.

Parameters:
aName - the new atom

measureDist

public double measureDist(Cartesian ccA,
                          Cartesian ccB)
Measure distance between points in 3D.

Parameters:
ccA - the cc a
ccB - the cc b
Returns:
the computed distance

getXYZ

public double[] getXYZ()
Gets the xYZ.

Returns:
the xYZ

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object