59 {
60
61 int num_leds =
args.num_leds;
62 float leds_per_turn =
args.leds_per_turn;
63 float width_cm =
args.width_cm;
64
65 const float circumference = leds_per_turn;
66 const float radius = circumference / (2.0 *
PI);
67 const float angle_per_led = 2.0 *
PI / leds_per_turn;
68 const float total_angle_radians = angle_per_led * num_leds;
69 const float total_turns = total_angle_radians / (2.0 *
PI);
70 const float height_per_turn_cm = width_cm;
71 const float height_per_led =
72 height_per_turn_cm /
73 leds_per_turn;
74 const float total_height =
75 height_per_turn_cm * total_turns;
77 for (int i = 0; i < num_leds; i++) {
78 float angle = i * angle_per_led;
79 float height = (i / leds_per_turn) * height_per_turn_cm;
80
81
82 float x = radius * cos(angle);
83 float z = radius * sin(angle);
85
86
88
90 }
91 return out;
92}
void push_back(const T &value)
HeapVector< T, Allocator > vector