| 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>()); |