|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Transformation
The representation of a transformation.
| Field Summary | |
protected Jama.Matrix |
matrix
The transformation matrix. |
protected String |
name
The name of the transformation. |
| Constructor Summary | |
Transformation(String name,
Jama.Matrix m)
Constructs the transformation object. |
|
| Method Summary | |
static Jama.Matrix |
createRotateX(double degs)
Create a rotation matrix around the X axis. |
static Jama.Matrix |
createRotateX(double degs,
double y,
double z)
Create a rotation matrix around a line parallel to the X axis. |
static Jama.Matrix |
createRotateY(double degs)
Create a rotation matrix around the Y axis. |
static Jama.Matrix |
createRotateY(double degs,
double x,
double z)
Create a rotation matrix around a line parallel to the Y axis |
static Jama.Matrix |
createRotateZ(double degs)
Create a rotation matrix around the Z axis. |
static Jama.Matrix |
createRotateZ(double degs,
double x,
double y)
Create a rotation matrix around a line parallel to the Z axis. |
static Jama.Matrix |
createScale(double sx,
double sy,
double sz)
Creates a scaling transformation matrix. |
static Jama.Matrix |
createTranslation(double dx,
double dy,
double dz)
Creates a translation transformation matrix. |
Jama.Matrix |
getMatrix()
Returns the transformation matrix. |
String |
toString()
Returns the name of the transformation. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected String name
protected Jama.Matrix matrix
| Constructor Detail |
public Transformation(String name,
Jama.Matrix m)
name - the name of the transformationm - the transformation matrix.| Method Detail |
public String toString()
public Jama.Matrix getMatrix()
public static Jama.Matrix createTranslation(double dx,
double dy,
double dz)
dx - the x-delta of the transformation.dy - the y-delta of the transformation.dz - the z-delta of the transformation.
public static Jama.Matrix createScale(double sx,
double sy,
double sz)
sx - the x-scale of the transformation.sy - the y-scale of the transformation.sz - the z-scale of the transformation.public static Jama.Matrix createRotateX(double degs)
degs - the rotation angle in degrees.public static Jama.Matrix createRotateY(double degs)
degs - the rotation angle in degrees.public static Jama.Matrix createRotateZ(double degs)
degs - the rotation angle in degrees.
public static Jama.Matrix createRotateX(double degs,
double y,
double z)
degs - the rotation angle in degrees.y - the y value of the line.z - the z value of the line.
public static Jama.Matrix createRotateY(double degs,
double x,
double z)
degs - the rotation angle in degrees.x - the x value of the line.z - the z value of the line.
public static Jama.Matrix createRotateZ(double degs,
double x,
double y)
degs - the rotation angle in degrees.x - the x value of the line.y - the y value of the line.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||