mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Don't use M_PI since it's only guaranteed to be defined in Eigen/Geometry
This commit is contained in:
@@ -421,7 +421,8 @@ struct round_retval
|
||||
EIGEN_DEVICE_FUNC
|
||||
static inline RealScalar run(const Scalar& x)
|
||||
{
|
||||
return (x < 0.0) ? M_PI : 0.0; }
|
||||
const double pi = std::acos(-1.0);
|
||||
return (x < 0.0) ? pi : 0.0; }
|
||||
};
|
||||
|
||||
template<typename Scalar>
|
||||
|
||||
Reference in New Issue
Block a user