Initial state of vector (or array?), I do not understand

Hello,

Something else for you to take a look at:

    distance_x = x[min_index] - x_2[j];
    //if (distance_x >0) {
    //  x_2[j] += cos(a)*radius + distance_x / 100.0;
    //} else {
    //  x_2[j] += cos(a)*radius + distance_x / 100.0;
    //}
   //Above conditions are always:
    x_2[j] += cos(a)*radius + distance_x / 100.0;

    distance_y = y[min_index] - y_2[j];
    //if (distance_y >0) {
    //  y_2[j] += sin(a)*radius + distance_y / 100.0;
    //} else {
    //  y_2[j] += sin(a)*radius + distance_y / 100.0;
    //}
   //Above conditions are always:
    y_2[j] += sin(a)*radius + distance_y / 100.0;

:)

2 Likes