aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Geometry/EulerAngles.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-07-31 10:08:23 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-07-31 10:08:23 +0200
commit21f686846bcda8997444090f779f78e17a801604 (patch)
treeef6455ef93908c14c43dfc9b5302bd8ad78f4a1d /Eigen/src/Geometry/EulerAngles.h
parentae5e26a363d9d611cbfd3683a0c7845683e6c99d (diff)
s/std::atan2/ei_atan2
Diffstat (limited to 'Eigen/src/Geometry/EulerAngles.h')
-rw-r--r--Eigen/src/Geometry/EulerAngles.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Eigen/src/Geometry/EulerAngles.h b/Eigen/src/Geometry/EulerAngles.h
index 97a892222..dbcc7ae89 100644
--- a/Eigen/src/Geometry/EulerAngles.h
+++ b/Eigen/src/Geometry/EulerAngles.h
@@ -60,31 +60,31 @@ MatrixBase<Derived>::eulerAngles(int a0, int a1, int a2) const
if (a0==a2)
{
Scalar s = Vector2(coeff(j,i) , coeff(k,i)).norm();
- res[1] = std::atan2(s, coeff(i,i));
+ res[1] = ei_atan2(s, coeff(i,i));
if (s > epsilon)
{
- res[0] = std::atan2(coeff(j,i), coeff(k,i));
- res[2] = std::atan2(coeff(i,j),-coeff(i,k));
+ res[0] = ei_atan2(coeff(j,i), coeff(k,i));
+ res[2] = ei_atan2(coeff(i,j),-coeff(i,k));
}
else
{
res[0] = Scalar(0);
- res[2] = (coeff(i,i)>0?1:-1)*std::atan2(-coeff(k,j), coeff(j,j));
+ res[2] = (coeff(i,i)>0?1:-1)*ei_atan2(-coeff(k,j), coeff(j,j));
}
}
else
{
Scalar c = Vector2(coeff(i,i) , coeff(i,j)).norm();
- res[1] = std::atan2(-coeff(i,k), c);
+ res[1] = ei_atan2(-coeff(i,k), c);
if (c > epsilon)
{
- res[0] = std::atan2(coeff(j,k), coeff(k,k));
- res[2] = std::atan2(coeff(i,j), coeff(i,i));
+ res[0] = ei_atan2(coeff(j,k), coeff(k,k));
+ res[2] = ei_atan2(coeff(i,j), coeff(i,i));
}
else
{
res[0] = Scalar(0);
- res[2] = (coeff(i,k)>0?1:-1)*std::atan2(-coeff(k,j), coeff(j,j));
+ res[2] = (coeff(i,k)>0?1:-1)*ei_atan2(-coeff(k,j), coeff(j,j));
}
}
if (!odd)