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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcalculateEigen(Matrix3f data) Calculate the eigenvalues and eigenvectors of the specified matrix.floatgetEigenValue(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 voidTest the Eigen3f class.
- 
Constructor Details- 
Eigen3fpublic Eigen3f()Instantiate an empty calculator.
- 
Eigen3fCalculate the eigenvalues and eigenvectors of the specified matrix.- Parameters:
- data- the input Matrix3f
 
 
- 
- 
Method Details- 
calculateEigenCalculate the eigenvalues and eigenvectors of the specified matrix.- Parameters:
- data- the input Matrix3f
 
- 
mainTest the Eigen3f class.- Parameters:
- args- ignored
 
- 
getEigenValuepublic float getEigenValue(int i) Read the indexed eigenvalue.- Parameters:
- i- which value to read (0, 1, or 2)
- Returns:
- the previously calculated eigenvalue
 
- 
getEigenVectorAccess the indexed eigenvector.- Parameters:
- i- which vector to read (0, 1, or 2)
- Returns:
- the pre-existing eigenvector
 
- 
getEigenValuespublic float[] getEigenValues()Access the array of eigenvalues.- Returns:
- the pre-existing array
 
- 
getEigenVectorsAccess the array of eigenvectors.- Returns:
- the pre-existing array of vectors
 
 
-