Calculates the area of the surfaces and elements in our environment
| 173 | |
| 174 | // Calculates the area of the surfaces and elements in our environment |
| 175 | void CalculateArea() { |
| 176 | rad_surface *surf; |
| 177 | int i, t; |
| 178 | |
| 179 | for (i = 0; i < rad_NumSurfaces; i++) { |
| 180 | surf = &rad_Surfaces[i]; |
| 181 | |
| 182 | CalculateAreaForSurface(surf); |
| 183 | |
| 184 | for (t = 0; t < surf->xresolution * surf->yresolution; t++) { |
| 185 | rad_element *ep = &surf->elements[t]; |
| 186 | CalculateAreaForElement(ep); |
| 187 | } |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | // Counts the total number of elements we have to work with |
| 192 | void CountElements() { |
no test coverage detected