rcs.posemath
Class PmCartesian

java.lang.Object
  extended by rcs.posemath.PmCartesian
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
PM_CARTESIAN

public class PmCartesian
extends java.lang.Object
implements java.lang.Cloneable


Field Summary
 double x
           
 double y
           
 double z
           
 
Constructor Summary
PmCartesian()
           
PmCartesian(double startx, double starty, double startz)
           
 
Method Summary
 PmCartesian add(PmCartesian c)
           
 java.lang.Object clone()
           
 double distFrom(PmCartesian p)
           
 boolean equals(PmCartesian v)
           
 boolean equals(PmCylindrical c)
           
 boolean equals(PmSpherical s)
           
 double getX()
           
 double getY()
           
 double getZ()
           
 double mag()
           
 PmCartesian multiply(double d)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 java.lang.String toString()
           
 void update(NMLFormatConverter nml_fc)
           
static PmCartesian valueOf(java.lang.String s)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x

y

public double y

z

public double z
Constructor Detail

PmCartesian

public PmCartesian()

PmCartesian

public PmCartesian(double startx,
                   double starty,
                   double startz)
Method Detail

update

public void update(NMLFormatConverter nml_fc)

mag

public double mag()

distFrom

public double distFrom(PmCartesian p)

equals

public boolean equals(PmCartesian v)
               throws PmException
Throws:
PmException

equals

public boolean equals(PmCylindrical c)
               throws PmException
Throws:
PmException

equals

public boolean equals(PmSpherical s)
               throws PmException
Throws:
PmException

toString

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

add

public PmCartesian add(PmCartesian c)

multiply

public PmCartesian multiply(double d)

valueOf

public static PmCartesian valueOf(java.lang.String s)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getX

public double getX()
Returns:
the x

setX

public void setX(double x)
Parameters:
x - the x to set

getY

public double getY()
Returns:
the y

setY

public void setY(double y)
Parameters:
y - the y to set

getZ

public double getZ()
Returns:
the z

setZ

public void setZ(double z)
Parameters:
z - the z to set