Commit 52823f75 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

remove operator == between different class of curves (should use isApprox)

parent 72d949c6
......@@ -177,13 +177,6 @@ struct bezier_curve : public curve_abc<Time, Numeric, Safe, Point> {
return curve_abc_t::isApprox(other,prec,order);
}
virtual bool operator==(const curve_abc_t& other) const {
return isApprox(other);
}
virtual bool operator!=(const curve_abc_t& other) const {
return !(*this == other);
}
/// \brief Compute the derived curve at order N.
......
......@@ -149,13 +149,6 @@ struct cubic_hermite_spline : public curve_abc<Time, Numeric, Safe, Point> {
return curve_abc_t::isApprox(other,prec,order);
}
virtual bool operator==(const curve_abc_t& other) const {
return isApprox(other);
}
virtual bool operator!=(const curve_abc_t& other) const {
return !(*this == other);
}
/// \brief Evaluate the derivative of order N of spline at time t.
......
......@@ -96,14 +96,6 @@ struct curve_abc : std::unary_function<Time, Point>, public serialization::Seria
return true;
}
virtual bool operator==(const curve_t& other) const {
return isApprox(other);
}
virtual bool operator!=(const curve_t& other) const {
return !(*this == other);
}
/*Operations*/
/*Helpers*/
......
......@@ -289,13 +289,6 @@ struct polynomial : public curve_abc<Time, Numeric, Safe, Point> {
return curve_abc_t::isApprox(other,prec,order);
}
virtual bool operator==(const curve_abc_t& other) const {
return isApprox(other);
}
virtual bool operator!=(const curve_abc_t& other) const {
return !(*this == other);
}
/// \brief Evaluation of the derivative of order N of spline at time t.
......
......@@ -183,14 +183,6 @@ struct SE3Curve : public curve_abc<Time, Numeric, Safe, Eigen::Transform<Numeric
else
return curve_abc_t::isApprox(other,prec,order);
}
virtual bool operator==(const curve_abc_t& other) const {
return isApprox(other);
}
virtual bool operator!=(const curve_abc_t& other) const {
return !(*this == other);
}
/// \brief Evaluation of the derivative of order N of spline at time t.
/// \param t : the time when to evaluate the spline.
......
......@@ -142,14 +142,6 @@ struct SO3Linear : public curve_abc<Time, Numeric, Safe, Eigen::Matrix<Numeric,
return curve_abc_t::isApprox(other,prec,order);
}
virtual bool operator==(const curve_abc_t& other) const {
return isApprox(other);
}
virtual bool operator!=(const curve_abc_t& other) const {
return !(*this == other);
}
/// \brief Evaluation of the derivative of order N of spline at time t.
/// \param t : the time when to evaluate the spline.
......
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