FastLED 3.9.15
Loading...
Searching...
No Matches

◆ cos_reduce_()

template<typename F>
F fl::detail::cos_reduce_ ( F x)
inline

Definition at line 202 of file math.cpp.hpp.

202 {
203 // cos(x) = sin(π/2 - x)
204 const F kPiHalf = F(1.57079632679489661923);
205 return sin_reduce_(kPiHalf - x);
206}
F sin_reduce_(F x) FL_NOEXCEPT
Definition math.cpp.hpp:184

References FL_NOEXCEPT, sin_reduce_(), and fl::x.

Referenced by fl::cos_impl_double(), fl::cos_impl_float(), fl::tan_impl_double(), and fl::tan_impl_float().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: