| 103 | return c; |
| 104 | } |
| 105 | vec3f lerp(const vec3f& a, const vec3f& b, const float v) { |
| 106 | const float u = 1.0f - v; |
| 107 | return vec3f(v * b.x + u * a.x, v * b.y + u * a.y, v * b.z + u * a.z); |
| 108 | } |
| 109 | |
| 110 | inline bool ends_with(const std::string& value, const std::string& ending) { |
| 111 | if (ending.size() > value.size()) { return false; } |