|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.arbaro.transformation.Transformation
public final class Transformation
A transformation class - a matrix for rotations and a vector for translations
Field Summary | |
---|---|
static int |
T
|
static int |
X
|
static int |
Y
|
static int |
Z
|
Constructor Summary | |
---|---|
Transformation()
|
|
Transformation(Matrix m,
Vector v)
|
Method Summary | |
---|---|
Vector |
apply(Vector v)
Applies the transformation to a vector |
Vector |
getT()
Returns the translation vector of the transformation. |
Vector |
getX()
Returns the X-column of the rotation matrix. |
Vector |
getY()
Returns the Y-column of the rotation matrix. |
Vector |
getZ()
Returns the Z-column of the rotation matrix. |
Transformation |
inverse()
|
Matrix |
matrix()
|
Transformation |
prod(Transformation T1)
|
Transformation |
rotaxis(double angle,
Vector axis)
|
Transformation |
rotaxisz(double delta,
double rho)
|
Transformation |
rotx(double angle)
|
Transformation |
rotxz(double delta,
double rho)
|
Transformation |
roty(double angle)
|
Transformation |
rotz(double angle)
|
java.lang.String |
toString()
|
Transformation |
translate(Vector v)
|
Vector |
vector()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int X
public static final int Y
public static final int Z
public static final int T
Constructor Detail |
---|
public Transformation()
public Transformation(Matrix m, Vector v)
Method Detail |
---|
public Matrix matrix()
public Vector vector()
public Transformation prod(Transformation T1)
T1
- the transformation to multiply with
public Vector apply(Vector v)
v
-
public Vector getX()
public Vector getY()
public Vector getZ()
public Vector getT()
public java.lang.String toString()
toString
in class java.lang.Object
public Transformation rotz(double angle)
public Transformation roty(double angle)
public Transformation rotx(double angle)
public Transformation rotxz(double delta, double rho)
public Transformation rotaxisz(double delta, double rho)
public Transformation translate(Vector v)
public Transformation rotaxis(double angle, Vector axis)
public Transformation inverse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |