Package com.jme3.math
Class Eigen3f
java.lang.Object
com.jme3.math.Eigen3f
- All Implemented Interfaces:
Serializable
A calculator for the eigenvectors and eigenvalues of a Matrix3f.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
calculateEigen
(Matrix3f data) Calculate the eigenvalues and eigenvectors of the specified matrix.float
getEigenValue
(int i) Read the indexed eigenvalue.float[]
Access the array of eigenvalues.getEigenVector
(int i) Access the indexed eigenvector.Vector3f[]
Access the array of eigenvectors.static void
Test the Eigen3f class.
-
Constructor Details
-
Eigen3f
public Eigen3f()Instantiate an empty calculator. -
Eigen3f
Calculate the eigenvalues and eigenvectors of the specified matrix.- Parameters:
data
- the input Matrix3f
-
-
Method Details
-
calculateEigen
Calculate the eigenvalues and eigenvectors of the specified matrix.- Parameters:
data
- the input Matrix3f
-
main
Test the Eigen3f class.- Parameters:
args
- ignored
-
getEigenValue
public float getEigenValue(int i) Read the indexed eigenvalue.- Parameters:
i
- which value to read (0, 1, or 2)- Returns:
- the previously calculated eigenvalue
-
getEigenVector
Access the indexed eigenvector.- Parameters:
i
- which vector to read (0, 1, or 2)- Returns:
- the pre-existing eigenvector
-
getEigenValues
public float[] getEigenValues()Access the array of eigenvalues.- Returns:
- the pre-existing array
-
getEigenVectors
Access the array of eigenvectors.- Returns:
- the pre-existing array of vectors
-