| 338 | |
| 339 | template <class T> |
| 340 | static Color3<T> |
| 341 | mulTuple(Color3<T> &color, const tuple &t) |
| 342 | { |
| 343 | MATH_EXC_ON; |
| 344 | if(t.attr("__len__")() == 3) |
| 345 | return Color3<T>(color.x * extract<T>(t[0]), |
| 346 | color.y * extract<T>(t[1]), |
| 347 | color.z * extract<T>(t[2])); |
| 348 | else |
| 349 | throw std::invalid_argument ("Color3 expects tuple of length 3"); |
| 350 | } |
| 351 | |
| 352 | template <class T> |
| 353 | static const Color3<T> & |
nothing calls this directly
no outgoing calls
no test coverage detected