MCPcopy Create free account
hub / github.com/VCVRack/Rack / complexMult

Function complexMult

include/math.hpp:176–179  ·  view source on GitHub ↗

Complex multiplication `c = a * b`. Arguments may be the same pointers. Example: cmultf(ar, ai, br, bi, &ar, &ai); */

Source from the content-addressed store, hash-verified

174 cmultf(ar, ai, br, bi, &ar, &ai);
175*/
176inline void complexMult(float ar, float ai, float br, float bi, float* cr, float* ci) {
177 *cr = ar * br - ai * bi;
178 *ci = ar * bi + ai * br;
179}
180
181////////////////////
182// 2D vector and rectangle

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected