public class PmCartesian
extends java.awt.geom.Point2D.Double
implements java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
double |
z |
| Constructor and Description |
|---|
PmCartesian() |
PmCartesian(double startx,
double starty,
double startz) |
| Modifier and Type | Method and Description |
|---|---|
PmCartesian |
add(PmCartesian c) |
PmCartesian |
clone() |
PmCartesian |
cross(PmCartesian other) |
double |
distFrom(PmCartesian p) |
double |
dot(PmCartesian other) |
boolean |
equals(PmCartesian v) |
boolean |
equals(PmCylindrical c) |
boolean |
equals(PmSpherical s) |
double |
getX() |
double |
getY() |
double |
getZ() |
double |
mag() |
PmCartesian |
multiply(double d) |
PmCartesian |
project(PmCartesian other) |
PmCartesian |
rotate(PmQuaternion quat) |
PmCartesian |
rotate(PmRotationMatrix mat) |
PmCartesian |
rotate(PmRotationVector v) |
void |
setX(double x) |
void |
setY(double y) |
void |
setZ(double z) |
PmCartesian |
subtract(PmCartesian c) |
java.lang.String |
toString() |
PmCartesian |
unit() |
void |
update(NMLFormatConverter nml_fc) |
static PmCartesian |
valueOf(java.lang.String s) |
public PmCartesian()
public PmCartesian(double startx,
double starty,
double startz)
public void update(NMLFormatConverter nml_fc)
public double mag()
public double distFrom(PmCartesian p)
public boolean equals(PmCartesian v) throws PmException
PmExceptionpublic boolean equals(PmCylindrical c) throws PmException
PmExceptionpublic boolean equals(PmSpherical s) throws PmException
PmExceptionpublic PmCartesian rotate(PmRotationMatrix mat) throws PmException
PmExceptionpublic PmCartesian rotate(PmQuaternion quat) throws PmException
PmExceptionpublic PmCartesian rotate(PmRotationVector v) throws PmException
PmExceptionpublic java.lang.String toString()
toString in class java.awt.geom.Point2D.Doublepublic PmCartesian add(PmCartesian c)
public PmCartesian subtract(PmCartesian c)
public PmCartesian multiply(double d)
public PmCartesian unit() throws PmException
PmExceptionpublic PmCartesian cross(PmCartesian other) throws PmException
PmExceptionpublic double dot(PmCartesian other)
public PmCartesian project(PmCartesian other) throws PmException
PmExceptionpublic static PmCartesian valueOf(java.lang.String s)
public PmCartesian clone()
clone in class java.awt.geom.Point2Dpublic double getX()
getX in class java.awt.geom.Point2D.Doublepublic void setX(double x)
x - the x to setpublic double getY()
getY in class java.awt.geom.Point2D.Doublepublic void setY(double y)
y - the y to setpublic double getZ()
public void setZ(double z)
z - the z to set