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.
-
matrices
- The matrices which make up the group.
-
name
- The matrix group's name.
-
numMatrices
- The number of matrices currently in the group.
-
result
- The group's composite result.
-
title
- The group's title.
-
MatrixGrp()
- Construct a matrix group with no name.
-
MatrixGrp(String)
- Construct a matrix group with the specified name.
-
addMatrix(Matrix3D)
- Add a matrix to the group.
-
addMatrix(int, Matrix3D)
- Add a matrix to the group at a specific place.
-
addOnlyMatrix(Matrix3D)
- Add the only matrix to the group.
-
addTransRotateMatrix(Vector3D, Angle3D)
- Add the equivalent of a translate/rotate matrix to the group.
-
addTransRotateMatrix(Vector3D, Matrix3D)
- Add the equivalent of a translate/rotate matrix to the group.
-
addTransRotateMatrix(Vector3D, Matrix3D, Matrix3D)
- Add the equivalent of a translate/rotate matrix to the group.
-
compute()
- Compute the dot product composite of the group's matrices.
-
getMatrix(int)
-
Return the matrix in the specified position.
-
reset()
- Reset the matrix group.
-
setEqual(int, Matrix3D)
- Set the matrix at the specified index to the specified matrix, or
create the entry if it doesn't already exist.
numMatrices
public int numMatrices
- The number of matrices currently in the group.
matrices
public Matrix3D matrices[]
- The matrices which make up the group.
result
public Matrix3D result
- The group's composite result.
name
public String name
- The matrix group's name.
title
public String title
- The group's title.
MatrixGrp
public MatrixGrp()
- Construct a matrix group with no name.
MatrixGrp
public MatrixGrp(String nameIn)
- Construct a matrix group with the specified name.
addMatrix
public int addMatrix(Matrix3D mIn)
- Add a matrix to the group.
addMatrix
public void addMatrix(int i,
Matrix3D mIn)
- Add a matrix to the group at a specific place.
addOnlyMatrix
public void addOnlyMatrix(Matrix3D mIn)
- Add the only matrix to the group. Optimize matrix group reset
and compute.
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.
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.
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.
compute
public void compute()
- Compute the dot product composite of the group's matrices.
getMatrix
public Matrix3D getMatrix(int i)
- Return the matrix in the specified position.
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.
reset
public void reset()
- Reset the matrix group.
All Packages Class Hierarchy This Package Previous Next Index