| 1467 | } |
| 1468 | |
| 1469 | void Utilities::seedRandom() { |
| 1470 | if (!m_random_seeded) { |
| 1471 | std::srand(std::time(nullptr)); |
| 1472 | m_random_seeded = true; |
| 1473 | } |
| 1474 | } |
| 1475 | |
| 1476 | // interpolates by cosine, frac in [0,1] |
| 1477 | float cosInterpol(float p_left, float p_right, float p_frac) { |
nothing calls this directly
no outgoing calls
no test coverage detected