| 88 | |
| 89 | template <typename ColorA, typename ColorB> |
| 90 | Zep::NVec4f mix(const ColorA& a_in, const ColorB& b_in, float t) { |
| 91 | const EditorColor a = a_in; |
| 92 | const EditorColor b = b_in; |
| 93 | return { |
| 94 | a.x + (b.x - a.x) * t, |
| 95 | a.y + (b.y - a.y) * t, |
| 96 | a.z + (b.z - a.z) * t, |
| 97 | a.w + (b.w - a.w) * t, |
| 98 | }; |
| 99 | } |
| 100 | |
| 101 | template <typename ColorA, typename ColorB> |
| 102 | EditorColor mix_color(const ColorA& a_in, const ColorB& b_in, float t) { |
no outgoing calls
no test coverage detected