mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix all the doxygen warnings.
This commit is contained in:
@@ -18,7 +18,7 @@ using namespace Eigen;
|
||||
Camera::Camera() : mViewIsUptodate(false), mProjIsUptodate(false) {
|
||||
mViewMatrix.setIdentity();
|
||||
|
||||
mFovY = M_PI / 3.;
|
||||
mFovY = EIGEN_PI / 3.;
|
||||
mNearDist = 1.;
|
||||
mFarDist = 50000.;
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ void GpuHelper::drawVector(const Vector3f& position, const Vector3f& vec, const
|
||||
ax.normalize();
|
||||
Vector3f tmp = vec;
|
||||
tmp.normalize();
|
||||
float angle = 180.f / M_PI * acos(tmp.z());
|
||||
float angle = 180.f / EIGEN_PI * acos(tmp.z());
|
||||
if (angle > 1e-3) glRotatef(angle, ax.x(), ax.y(), ax.z());
|
||||
gluCylinder(cylinder, length / aspect, length / aspect, 0.8 * length, 10, 10);
|
||||
glTranslatef(0.0, 0.0, 0.8 * length);
|
||||
@@ -74,7 +74,7 @@ void GpuHelper::drawVectorBox(const Vector3f& position, const Vector3f& vec, con
|
||||
ax.normalize();
|
||||
Vector3f tmp = vec;
|
||||
tmp.normalize();
|
||||
float angle = 180.f / M_PI * acos(tmp.z());
|
||||
float angle = 180.f / EIGEN_PI * acos(tmp.z());
|
||||
if (angle > 1e-3) glRotatef(angle, ax.x(), ax.y(), ax.z());
|
||||
gluCylinder(cylinder, length / aspect, length / aspect, 0.8 * length, 10, 10);
|
||||
glTranslatef(0.0, 0.0, 0.8 * length);
|
||||
|
||||
@@ -53,7 +53,8 @@ class FancySpheres {
|
||||
}
|
||||
}
|
||||
|
||||
static const float angles[10] = {0, 0, M_PI, 0. * M_PI, M_PI, 0.5 * M_PI, M_PI, 1. * M_PI, M_PI, 1.5 * M_PI};
|
||||
static const float angles[10] = {
|
||||
0, 0, EIGEN_PI, 0. * EIGEN_PI, EIGEN_PI, 0.5 * EIGEN_PI, EIGEN_PI, 1. * EIGEN_PI, EIGEN_PI, 1.5 * EIGEN_PI};
|
||||
|
||||
// generate other levels
|
||||
int start = 1;
|
||||
@@ -377,7 +378,7 @@ void RenderingWidget::mouseMoveEvent(QMouseEvent* e) {
|
||||
} else {
|
||||
// standard approach mapping the x and y displacements as rotations
|
||||
// around the camera's X and Y axes.
|
||||
Quaternionf q = AngleAxisf(dx * M_PI, Vector3f::UnitY()) * AngleAxisf(-dy * M_PI, Vector3f::UnitX());
|
||||
Quaternionf q = AngleAxisf(dx * EIGEN_PI, Vector3f::UnitY()) * AngleAxisf(-dy * EIGEN_PI, Vector3f::UnitX());
|
||||
if (mCurrentTrackingMode == TM_LOCAL_ROTATE)
|
||||
mCamera.localRotate(q);
|
||||
else
|
||||
|
||||
@@ -37,8 +37,8 @@ bool Trackball::mapToSphere(const Vector2i& p2, Vector3f& v3) {
|
||||
if ((p2.x() >= 0) && (p2.x() <= int(mpCamera->vpWidth())) && (p2.y() >= 0) && (p2.y() <= int(mpCamera->vpHeight()))) {
|
||||
double x = (double)(p2.x() - 0.5 * mpCamera->vpWidth()) / (double)mpCamera->vpWidth();
|
||||
double y = (double)(0.5 * mpCamera->vpHeight() - p2.y()) / (double)mpCamera->vpHeight();
|
||||
double sinx = sin(M_PI * x * 0.5);
|
||||
double siny = sin(M_PI * y * 0.5);
|
||||
double sinx = sin(EIGEN_PI * x * 0.5);
|
||||
double siny = sin(EIGEN_PI * y * 0.5);
|
||||
double sinx2siny2 = sinx * sinx + siny * siny;
|
||||
|
||||
v3.x() = sinx;
|
||||
|
||||
Reference in New Issue
Block a user