* Addition of two 3-vectors (float version). Result is stored in c according to c = a + b. */
| 345 | * Addition of two 3-vectors (float version). Result is stored in c according to c = a + b. |
| 346 | */ |
| 347 | static void Add(const float a[3], const float b[3], float c[3]) |
| 348 | { |
| 349 | for (int i = 0; i < 3; ++i) |
| 350 | { |
| 351 | c[i] = a[i] + b[i]; |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * Addition of two 3-vectors (double version). Result is stored in c according to c = a + b. |
no outgoing calls