Files
SDRPlusPlus/core/src/dsp/math/phasor.h
AlexandreRouma d1318d3a0f even more stuff
2022-06-15 16:08:54 +02:00

10 lines
190 B
C++

#pragma once
#include <math.h>
#include "../types.h"
namespace dsp::math {
inline complex_t phasor(float x) {
complex_t cplx = { cosf(x), sinf(x) };
return cplx;
}
}