#include #include #include void generateAngles() { int n_elevations = 6; float thetas[] = { 0, 15, 30, 45, 60, 75 }; float phi_increments[] = { 360, 60, 30, 20, 18, 15 }; float phi_offsets[] = { 0, 0, 0, 0, 0, 0 }; int index = 0; for (int tvi = 0; tvi < n_elevations; tvi++) { float tv = thetas[tvi]; for (float pv = phi_offsets[tvi]; pv < 360.0f; pv += phi_increments[tvi]) { for (int tli = 0; tli < n_elevations; tli++) { float tl = thetas[tli]; for (float pl = phi_offsets[tli]; pl < 360.0f; pl += phi_increments[tli]) { index++; std::cout << index << " " << " " << tl << " " << pl << " " << tv << " " << pv << std::endl; } } } } }