[ create a new paste ] login | about

Link: http://codepad.org/lDUO2euD    [ raw code | fork ]

C++, pasted on Dec 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
float currentXgrid = 0;
float currentZgrid = 0;
for ( unsigned int m = 0; m <= grid_Size; m++ )
{
    u = currentXgrid;
    v = currentZgrid;

    currentXgrid += 0.1;
    if ( currentXgrid > 1  )
    {
         currentXgrid = 0; 
         currentZgrid += 0.1;
     }
}


Create a new paste based on this one


Comments: