mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-04 14:07:30 +00:00
partial reconstruction from qwt to manual plotting
This commit is contained in:
parent
ef97d54913
commit
25196fbc30
17 changed files with 822 additions and 371 deletions
13
Software/PC_Application/Util/util.h
Normal file
13
Software/PC_Application/Util/util.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#ifndef UTILH_H
|
||||
#define UTILH_H
|
||||
|
||||
namespace Util {
|
||||
template<typename T> T Scale(T value, T from_low, T from_high, T to_low, T to_high) {
|
||||
value -= from_low;
|
||||
value *= (to_high - to_low) / (from_high - from_low);
|
||||
value += to_low;
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // UTILH_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue