MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / polar

Method polar

libraries/Complex/complex.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26
27void Complex::polar(const float modulus, const float phase)
28{
29 re = modulus * cos(phase);
30 im = modulus * sin(phase);
31}
32
33
34Complex Complex::reciprocal() const

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64