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
96722777
Commit
96722777
authored
Jan 07, 2020
by
stevet
Browse files
more == replacements for numeric types
parent
d53ed18c
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/curves/bernstein.h
View file @
96722777
...
...
@@ -46,9 +46,9 @@ struct Bern {
}
virtual
bool
operator
==
(
const
Bern
&
other
)
const
{
return
m_minus_i
==
other
.
m_minus_i
&&
i_
==
other
.
i_
&&
bin_m_i_
==
other
.
bin_m_i_
;
return
curves
::
isApprox
<
Numeric
>
(
m_minus_i
,
other
.
m_minus_i
)
&&
curves
::
isApprox
<
Numeric
>
(
i_
,
other
.
i_
)
&&
curves
::
isApprox
<
Numeric
>
(
bin_m_i_
,
other
.
bin_m_i_
)
;
}
virtual
bool
operator
!=
(
const
Bern
&
other
)
const
{
...
...
include/curves/bezier_curve.h
View file @
96722777
...
...
@@ -153,7 +153,7 @@ struct bezier_curve : public curve_abc<Time, Numeric, Safe, Point> {
&&
dim_
==
other
.
dim
()
&&
degree_
==
other
.
degree
()
&&
size_
==
other
.
size_
&&
mult_T_
==
other
.
mult_T_
&&
curves
::
isApprox
<
Numeric
>
(
mult_T_
,
other
.
mult_T_
)
&&
bernstein_
==
other
.
bernstein_
;
if
(
!
equal
)
return
false
;
...
...
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