Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 225 void printPoi(poi myPoi[], int size)
- 226 {
- 227 printf("\nx = ");
- 228
- 229 // x
- 230 for(int i = 0; i < size; i++)
- 231 {
- 232 if(myPoi[i].xPlus)
- 233 {
- 234 printf("+");
- 235 }
- 236 else
- 237 {
- 238 printf("-");
- 239 }
- 240 // complicated maths
- 241 printf("%0.1lf*sin(%d*theta)", myPoi[i].radius, myPoi[i].factor);
- 242 }
- 243
- 244 printf("\ny = "); // y
- 245 for(int x = 0; x < size; x++)
- 246 {
- 247 if(myPoi[x].yPlus) // sign
- 248 {
- 249 printf("+");
- 250 }
- 251 else
- 252 {
- 253 printf("-"); // sign
- 238 printf("-");
- 239 }
- 240 // complicated maths
- 241 printf("%0.1lf*sin(%d*theta)", myPoi[i].radius, myPoi[i].factor);
- 242 }
- 243
- 244 printf("\ny = "); // y
- 245 for(int x = 0; x < size; x++)
- 246 {
- 247 if(myPoi[x].yPlus) // sign
- 248 {
- 249 printf("+");
- 250 }
- 251 else
- 252 {
- 253 printf("-"); // sign
- 254 }
- 255
- 256 // complicated maths
- 257 printf("%0.1lf*cos(%d*theta)", myPoi[x].radius, myPoi[x].factor);
- 258 }
- 259 printf("\n");
- 260 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement