67 {
68
69 int num_leds =
args.num_leds;
70 float leds_per_turn =
args.leds_per_turn;
71 float width_cm =
args.width_cm;
72
73 const float circumference = leds_per_turn;
74 const float radius = circumference / (2.0 *
PI);
75 const float angle_per_led = 2.0 *
PI / leds_per_turn;
76 const float total_angle_radians = angle_per_led * num_leds;
77 const float total_turns = total_angle_radians / (2.0 *
PI);
78 const float height_per_turn_cm = width_cm;
79 const float height_per_led =
80 height_per_turn_cm /
81 leds_per_turn;
82 const float total_height =
83 height_per_turn_cm * total_turns;
85 for (int i = 0; i < num_leds; i++) {
86 float angle = i * angle_per_led;
87 float height = (i / leds_per_turn) * height_per_turn_cm;
88
89
90 float x = radius * cos(angle);
91 float z = radius * sin(angle);
93
94
96
98 }
99 return out;
100}
void push_back(const T &value)
HeapVector< T, Allocator > vector