MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / FilterSinc1D

Function FilterSinc1D

SampleFramework12/v1.00/Graphics/Filtering.h:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111inline float FilterSinc1D(float x)
112{
113 x = std::abs(x);
114
115 float s;
116 if(x < 0.001f)
117 s = 1.0f;
118 else
119 s = std::sin(x * Pi) / (x * Pi);
120
121 return s;
122}
123
124inline float BlackmanHarris(float x)
125{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected