|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.chemistry.gui.basic.Matrix3D
public class Matrix3D
A fairly conventional 3D matrix object that can transform sets of 3D points and perform a variety of manipulations on the transform
| Constructor Summary | |
|---|---|
Matrix3D()
Create a new unit matrix |
|
| Method Summary | |
|---|---|
void |
mult(Matrix3D rhs)
Multiply this matrix by a second: M = MR |
void |
scale(double f)
Scale by f in all dimensions |
void |
scale(double xf,
double yf,
double zf)
Scale along each axis independently |
java.lang.String |
toString()
DOCUMENT ME! |
void |
transform(Atom atom)
DOCUMENT ME! |
void |
transform(double[] v,
int[] tv,
int nvert)
Transform nvert points from v into tv. |
void |
translate(double x,
double y,
double z)
Translate the origin |
void |
unit()
Reinitialize to the unit matrix |
void |
xrot(double theta)
rotate theta degrees about the x axis |
void |
yrot(double theta)
rotate theta degrees about the y axis |
void |
zrot(double theta)
rotate theta degrees about the z axis |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Matrix3D()
| Method Detail |
|---|
public void scale(double f)
f - DOCUMENT ME!
public void scale(double xf,
double yf,
double zf)
xf - DOCUMENT ME!yf - DOCUMENT ME!zf - DOCUMENT ME!
public void translate(double x,
double y,
double z)
x - DOCUMENT ME!y - DOCUMENT ME!z - DOCUMENT ME!public void yrot(double theta)
theta - DOCUMENT ME!public void xrot(double theta)
theta - DOCUMENT ME!public void zrot(double theta)
theta - DOCUMENT ME!public void mult(Matrix3D rhs)
rhs - DOCUMENT ME!public void unit()
public void transform(Atom atom)
atom - DOCUMENT ME!
public void transform(double[] v,
int[] tv,
int nvert)
v - DOCUMENT ME!tv - DOCUMENT ME!nvert - DOCUMENT ME!public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||