Package com.jme3.math

Class Eigen3f

java.lang.Object
com.jme3.math.Eigen3f
All Implemented Interfaces:
Serializable

public class Eigen3f extends Object implements Serializable
A calculator for the eigenvectors and eigenvalues of a Matrix3f.
See Also:
  • Constructor Details

    • Eigen3f

      public Eigen3f()
      Instantiate an empty calculator.
    • Eigen3f

      public Eigen3f(Matrix3f data)
      Calculate the eigenvalues and eigenvectors of the specified matrix.
      Parameters:
      data - the input Matrix3f
  • Method Details

    • calculateEigen

      public void calculateEigen(Matrix3f data)
      Calculate the eigenvalues and eigenvectors of the specified matrix.
      Parameters:
      data - the input Matrix3f
    • main

      public static void main(String[] args)
      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

      public Vector3f getEigenVector(int i)
      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

      public Vector3f[] getEigenVectors()
      Access the array of eigenvectors.
      Returns:
      the pre-existing array of vectors