FastLED 3.10.6
Loading...
Searching...
No Matches

◆ cos_reduce_()

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

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

283 {
284 // cos(x) = sin(π/2 - x)
285 const F kPiHalf = F(1.57079632679489661923);
286 return sin_reduce_(kPiHalf - x);
287}
F sin_reduce_(F x) FL_NO_EXCEPT
Definition math.cpp.hpp:265

References fl::FL_NO_EXCEPT, 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: