MCPcopy Create free account
hub / github.com/VitalAudio/visage / quickSin1

Function quickSin1

examples/Showcase/examples_frame.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36using namespace visage::dimension;
37
38inline float quickSin1(float phase) {
39 phase = 0.5f - phase;
40 return phase * (8.0f - 16.0f * fabsf(phase));
41}
42
43inline float sin1(float phase) {
44 float approx = quickSin1(phase - floorf(phase));

Callers 1

sin1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected