#include "mainwindow.h"
#include <QApplication>
#include "eigen3/Eigen/Core"
#include "eigen3/Eigen/Dense"
#include <cmath>
#include <iostream>
int mainint argc, char *argv[])
{
QApplication aargc, argv);
float value = 4.0;
float angle = 90.0;
float radian = 3.141593;
std::cout <<"sqrt:"<< std::sqrtvalue) << std::endl;
std::cout <<"acos -1:"<< std::acos-1) << std::endl;
std::cout <<"sin angle:"<< std::sinangle/180.0*acos-1)) << std::endl;
std::cout <<"sin radian:"<< std::sinradian/2.0) << std::endl;
Eigen::Vector3f v11.0f,0.0f,0.0f);
std::cout <<"Vector3f:" << v1 << std::endl;
Eigen::Vector3f v20.0f,1.0f,0.0f);
std::cout <<"Vector3f dot:" << v1.dotv2) << std::endl;
std::cout <<"Vector3f dot:" << v2.dotv1) << std::endl;
std::cout <<"Vector3f cross:" << v1.crossv2) << std::endl;
std::cout <<"Vector3f cross:" << v2.crossv1) << std::endl;
Eigen::Vector3f v35.0f,0.0f,0.0f);
std::cout <<"Vector3f normalized:" << v3.normalized) << std::endl;
Eigen::Matrix3f m = Eigen::Matrix3f::Identity);
std::cout <<"Matrix3f Identity:"<< m << std::endl;
m << 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0;
std::cout <<"Matrix3f:"<< m << std::endl;
std::cout <<"Matrix3f2,2):"<< m1,1) << std::endl;
std::cout <<"Matrix3f transpose:"<< m.transpose) << std::endl;
std::cout <<"Matrix3f conjugate:"<< m.conjugate) << std::endl;
std::cout <<"Matrix3f adjoint:"<< m.adjoint) << std::endl;
return a.exec);
}