public static void TestCalculateEigenVectors(float2x2 A) { var ok = LIR.CalculateEigenValues(A, out float v1, out float v2); if (!ok) { return; } var vec2a = LIR.CalculateEigenVector(A, v1); var vec2b = LIR.CalculateEigenVector(A, v2); Debug.Log($"{v1} : {vec2a.x} {vec2a.y}"); Debug.Log($"{v2} : {vec2b.x} {vec2b.y}"); }
public static void TestCalculateEigenValues(float2x2 A) { var ok = LIR.CalculateEigenValues(A, out float v1, out float v2); Debug.Log($"{ok} {v1} {v2}"); }