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

Constructor Index

 o TransUtil()

Method Index

 o getLIColumnPermutation(Matrix, int[])
Finds a permutation of the columns in ms such that the linear independent columns are placed at the beginning.
 o permutateColumns(Matrix, int[])
Matrix column permutation.
 o rotation2d(double)
Calculates a 2D rotation about a given angle.
 o rotation3d(Point, double)
Calculates a 3D rotation about a given rotation axis and a given angle.
 o testPointSequences(PointSequence, PointSequence, int[])
Compatibilty test.
 o testTransformation(PointSequence, PointSequence, Transformation)
Transformation test.

Constructors

 o TransUtil
  public TransUtil()

Methods

 o 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.
 o 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.

 o 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)
 o 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.

 o rotation2d
  public static Transformation rotation2d(double rotAngle)
Calculates a 2D rotation about a given angle.

The generated transformation is a 3x3 MatrixTrans.

 o 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