From 20515208f3b0cba070c4b13d317022ab54701b05 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sun, 15 Mar 2020 16:19:36 +0100 Subject: [PATCH] added freq() to Phasor --- phasor.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/phasor.hh b/phasor.hh index b5cb71e..6d0e4bd 100644 --- a/phasor.hh +++ b/phasor.hh @@ -30,6 +30,10 @@ public: { delta = complex_type(cos(v), sin(v)); } + void freq(value_type v) + { + omega(Const::TwoPi() * v); + } complex_type operator()() { complex_type tmp = prev;