rcs.posemath
Class PmCartesian
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public double x
y
public double y
z
public double z
PmCartesian
public PmCartesian()
PmCartesian
public PmCartesian(double startx,
double starty,
double startz)
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