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

Method acos

src/fl/math/fixed_point/base.h:204–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 }
203
204 static FASTLED_FORCE_INLINE Derived acos(Derived x) {
205 constexpr Derived one(1.0f);
206 return atan2(sqrt(one - x * x), x);
207 }
208
209 static constexpr FASTLED_FORCE_INLINE Derived sqrt(Derived x) {
210 return x.mValue <= 0 ? Derived() : sqrt_impl(x, fl::bool_constant<traits::USE_ISQRT32>());

Callers

nothing calls this directly

Calls 3

sqrtFunction · 0.85
acosFunction · 0.85
atan2Function · 0.50

Tested by

no test coverage detected