Skip to content
Snippets Groups Projects
Commit 38c9e324 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

DataPoint: add * and / operators against other DataPoint

parent 0b530985
Branches
No related tags found
No related merge requests found
...@@ -74,6 +74,18 @@ public: ...@@ -74,6 +74,18 @@ public:
out.im = out.im + in.im; out.im = out.im + in.im;
return out; return out;
} }
DataPoint operator/(const DataPoint& in) const
{
DataPoint out(*this);
out.im = out.im / in.im;
return out;
}
DataPoint operator*(const DataPoint& in) const
{
DataPoint out(*this);
out.im = out.im * in.im;
return out;
}
DataPoint operator/(fvalue in) const DataPoint operator/(fvalue in) const
{ {
DataPoint out(*this); DataPoint out(*this);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment