MCPcopy Create free account
hub / github.com/FastLED/FastLED / cos_reduce_

Function cos_reduce_

src/fl/math/math.cpp.hpp:202–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200
201template <typename F>
202inline F cos_reduce_(F x) FL_NOEXCEPT {
203 // cos(x) = sin(π/2 - x)
204 const F kPiHalf = F(1.57079632679489661923);
205 return sin_reduce_(kPiHalf - x);
206}
207
208// --- log via fraction extraction + polynomial -----------------------------
209//

Callers

nothing calls this directly

Calls 2

FClass · 0.85
sin_reduce_Function · 0.85

Tested by

no test coverage detected