15 {
17 float centerX = gridWidth / 2.0f;
18 float centerY = gridHeight / 2.0f;
19 float radius =
fl::min(gridWidth, gridHeight) / 2.0f - 1;
20 float angle = (
TWO_PI * index) / numLeds;
21 pt_out.
x = centerX +
fl::cos(angle) * radius;
22 pt_out.
y = centerY +
fl::sin(angle) * radius;
23 });
24}
enable_if< is_fixed_point< T >::value, T >::type sin(T angle) FL_NO_EXCEPT
enable_if< is_fixed_point< T >::value, T >::type cos(T angle) FL_NO_EXCEPT
FL_DISABLE_WARNING_PUSH U constexpr common_type_t< T, U > min(T a, U b) FL_NO_EXCEPT