Class matrix3D.MatrixGrp
All Packages  Class Hierarchy  This Package  Previous  Next  Index
source

Class matrix3D.MatrixGrp

java.lang.Object
   |
   +----matrix3D.MatrixGrp

public class MatrixGrp
extends Object
A group of matrices. Individual matrices may be added to the group, and the group's composite result matrix determined.

Variable Index

 o matrices
The matrices which make up the group.
 o name
The matrix group's name.
 o numMatrices
The number of matrices currently in the group.
 o result
The group's composite result.
 o title
The group's title.

Constructor Index

 o MatrixGrp()
Construct a matrix group with no name.
 o MatrixGrp(String)
Construct a matrix group with the specified name.

Method Index

 o addMatrix(Matrix3D)
Add a matrix to the group.
 o addMatrix(int, Matrix3D)
Add a matrix to the group at a specific place.
 o addOnlyMatrix(Matrix3D)
Add the only matrix to the group.
 o addTransRotateMatrix(Vector3D, Angle3D)
Add the equivalent of a translate/rotate matrix to the group.
 o addTransRotateMatrix(Vector3D, Matrix3D)
Add the equivalent of a translate/rotate matrix to the group.
 o addTransRotateMatrix(Vector3D, Matrix3D, Matrix3D)
Add the equivalent of a translate/rotate matrix to the group.
 o compute()
Compute the dot product composite of the group's matrices.
 o getMatrix(int)
Return the matrix in the specified position.
 o reset()
Reset the matrix group.
 o setEqual(int, Matrix3D)
Set the matrix at the specified index to the specified matrix, or create the entry if it doesn't already exist.

Variables

 o numMatrices
  public int numMatrices
The number of matrices currently in the group.
 o matrices
  public Matrix3D matrices[]
The matrices which make up the group.
 o result
  public Matrix3D result
The group's composite result.
 o name
  public String name
The matrix group's name.
 o title
  public String title
The group's title.

Constructors

 o MatrixGrp
  public MatrixGrp()
Construct a matrix group with no name.
 o MatrixGrp
  public MatrixGrp(String nameIn)
Construct a matrix group with the specified name.

Methods

 o addMatrix
  public int addMatrix(Matrix3D mIn)
Add a matrix to the group.
 o addMatrix
  public void addMatrix(int i,
                        Matrix3D mIn)
Add a matrix to the group at a specific place.
 o addOnlyMatrix
  public void addOnlyMatrix(Matrix3D mIn)
Add the only matrix to the group. Optimize matrix group reset and compute.
 o addTransRotateMatrix
  public void addTransRotateMatrix(Vector3D v,
                                   Angle3D a)
Add the equivalent of a translate/rotate matrix to the group. Add matrices to translate the object by vector v, rotate it by angle a, and translate it back. The matrices are added seperately so they can be applied seperately.
 o addTransRotateMatrix
  public void addTransRotateMatrix(Vector3D v,
                                   Matrix3D m)
Add the equivalent of a translate/rotate matrix to the group. Add matrices to translate the object by vector v, apply the input matrix m and translate it back. The matrices are added seperately so they can be applied seperately.
 o addTransRotateMatrix
  public void addTransRotateMatrix(Vector3D v,
                                   Matrix3D m1,
                                   Matrix3D m2)
Add the equivalent of a translate/rotate matrix to the group. Add matrices to translate the object by vector v, apply the two input matrices m1 and m2, and translate it back. The matrices are added seperately so they can be applied seperately, and there are two input matrices because some transformations are better illustrated by breaking them in half.
 o compute
  public void compute()
Compute the dot product composite of the group's matrices.
 o getMatrix
  public Matrix3D getMatrix(int i)
Return the matrix in the specified position.
 o setEqual
  public void setEqual(int i,
                       Matrix3D mIn)
Set the matrix at the specified index to the specified matrix, or create the entry if it doesn't already exist.
 o reset
  public void reset()
Reset the matrix group.

All Packages  Class Hierarchy  This Package  Previous  Next  Index