All Packages Class Hierarchy This Package Previous Next Index
Class collage.kernel.TransUtil
java.lang.Object
|
+----collage.kernel.TransUtil
- public class TransUtil
- extends Object
Transformation utility functions.
- Version:
- 09 Apr 1997
- Author:
- Nils Schwabe
-
TransUtil()
-
-
getLIColumnPermutation(Matrix, int[])
- Finds a permutation of the columns in ms such that the
linear independent columns are placed at the beginning.
-
permutateColumns(Matrix, int[])
- Matrix column permutation.
-
rotation2d(double)
- Calculates a 2D rotation about a given angle.
-
rotation3d(Point, double)
- Calculates a 3D rotation about a given rotation axis and a given
angle.
-
testPointSequences(PointSequence, PointSequence, int[])
-
Compatibilty test.
-
testTransformation(PointSequence, PointSequence, Transformation)
- Transformation test.
TransUtil
public TransUtil()
getLIColumnPermutation
public static boolean getLIColumnPermutation(Matrix m,
int perm[])
- Finds a permutation of the columns in ms such that the
linear independent columns are placed at the beginning.
Assumptions:
ms is of type (m x m+n), m>0, n>=0.
perm[] must have at least m+n elements.
- Returns:
-
false
- There is no linear independent permutation
true
- If there is such a linear indepdent permutation, then this is one.
permutateColumns
public static void permutateColumns(Matrix m,
int perm[])
- Matrix column permutation.
Permutates the columns in a given matrix according to a given
permutation vector.
testPointSequences
public static boolean testPointSequences(PointSequence s,
PointSequence t,
int length[])
- Compatibilty test.
Applies a general compatibility test to both lists that is needed by nearly
all transformation finders. Answers
true
if successful.
Note: In the Java version, only the length of both lists is compared.
- Parameters:
- s - source sequence
- d - destination sequence
- length - length of (both) lists (only index 0 is used to store the result)
testTransformation
public static boolean testTransformation(PointSequence s,
PointSequence t,
Transformation trans)
- Transformation test.
Checks if
trans
maps all points of s
to the
corresponding points of t
.
rotation2d
public static Transformation rotation2d(double rotAngle)
- Calculates a 2D rotation about a given angle.
The generated transformation is a 3x3 MatrixTrans
.
rotation3d
public static Transformation rotation3d(Point rotDir,
double rotAngle)
- Calculates a 3D rotation about a given rotation axis and a given
angle.
The generated transformation is a 4x4 MatrixTrans
.
All Packages Class Hierarchy This Package Previous Next Index