Commit 00a9853b authored by Gabriele Buondonno's avatar Gabriele Buondonno
Browse files

[SpecialOrthogonal/isNormalized_impl use ref

parent 2ae43781
......@@ -307,7 +307,7 @@ namespace pinocchio
template <class Config_t>
static bool isNormalized_impl (const Eigen::MatrixBase<Config_t> & qin,
const Scalar prec)
const Scalar& prec)
{
const Scalar norm = qin.norm();
return (std::abs(norm - Scalar(1.0)) < prec );
......@@ -584,7 +584,7 @@ namespace pinocchio
template <class Config_t>
static bool isNormalized_impl (const Eigen::MatrixBase<Config_t> & qin,
const Scalar prec)
const Scalar& prec)
{
const Scalar norm = qin.norm();
return (std::abs(norm - Scalar(1.0)) < prec );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment