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

Function sincos

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

Source from the content-addressed store, hash-verified

533// sincos(angle, &out_sin, &out_cos) for floating-point types
534template <typename T>
535inline typename enable_if<is_floating_point<T>::value>::type
536sincos(T angle, T& out_sin, T& out_cos) FL_NOEXCEPT {
537 out_sin = static_cast<T>(fl::sinf(static_cast<float>(angle)));
538 out_cos = static_cast<T>(fl::cosf(static_cast<float>(angle)));
539}
540
541// sincos(angle, &out_sin, &out_cos) for integral types
542template <typename T>

Callers 5

emitOrbitalDotsMethod · 0.50
circleNoiseGenMethod · 0.50
sinMethod · 0.50
cosMethod · 0.50
test_sincos_implFunction · 0.50

Calls 2

sinfFunction · 0.85
cosfFunction · 0.85

Tested by 1

test_sincos_implFunction · 0.40