| 198 | |
| 199 | template <class T> |
| 200 | static Color3<T> |
| 201 | addTuple(Color3<T> &color, const tuple &t) |
| 202 | { |
| 203 | MATH_EXC_ON; |
| 204 | if(t.attr("__len__")() == 3) |
| 205 | return Color3<T>(color.x + extract<T>(t[0]), |
| 206 | color.y + extract<T>(t[1]), |
| 207 | color.z + extract<T>(t[2])); |
| 208 | else |
| 209 | throw std::invalid_argument ("Color3 expects tuple of length 3"); |
| 210 | } |
| 211 | |
| 212 | template <class T> |
| 213 | static Color3<T> |
nothing calls this directly
no outgoing calls
no test coverage detected