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

Function cos

src/fl/math/math.h:359–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357// cos
358inline float cosf(float value) FL_NOEXCEPT { return cos_impl_float(value); }
359inline double cos(double value) FL_NOEXCEPT { return cos_impl_double(value); }
360template<typename T> inline typename enable_if<is_integral<T>::value, float>::type
361cos(T value) FL_NOEXCEPT { return cos_impl_float(static_cast<float>(value)); }
362

Callers 15

next_pointFunction · 0.90
cos_impl_doubleFunction · 0.70
CircleMethod · 0.70
computeWindowMethod · 0.50
s12x4Class · 0.50
s24x8Class · 0.50
s8x8Class · 0.50
s4x12Class · 0.50
lerpFunction · 0.50
s8x24Class · 0.50
cosMethod · 0.50
FL_TEST_FILEFunction · 0.50

Calls 2

cos_impl_doubleFunction · 0.85
cos_impl_floatFunction · 0.85

Tested by 3

test_cos_implFunction · 0.40
test_sincos_implFunction · 0.40