Skip to content
Snippets Groups Projects
Commit bc8da67f authored by Patrick Jaap's avatar Patrick Jaap
Browse files

Merge branch 'feature/interval-multiplication' into 'master'

Interval: handle negative multiplication

See merge request !50
parents a7de87f9 21328259
No related branches found
No related tags found
1 merge request!50Interval: handle negative multiplication
Pipeline #32328 passed
......@@ -63,6 +63,11 @@ public:
{
data_[0] *= c;
data_[1] *= c;
// swap if multiplication with negative number
if ( c < 0.0 )
std::swap(data_[0],data_[1]);
return *this;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment