Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
ndcurves
Commits
52823f75
Commit
52823f75
authored
Dec 18, 2019
by
Pierre Fernbach
Browse files
remove operator == between different class of curves (should use isApprox)
parent
72d949c6
Changes
6
Hide whitespace changes
Inline
Side-by-side
include/curves/bezier_curve.h
View file @
52823f75
...
...
@@ -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.
...
...
include/curves/cubic_hermite_spline.h
View file @
52823f75
...
...
@@ -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.
...
...
include/curves/curve_abc.h
View file @
52823f75
...
...
@@ -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*/
...
...
include/curves/polynomial.h
View file @
52823f75
...
...
@@ -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.
...
...
include/curves/se3_curve.h
View file @
52823f75
...
...
@@ -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.
...
...
include/curves/so3_linear.h
View file @
52823f75
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment