| 383 | |
| 384 | template <class T> |
| 385 | static Color3<T> |
| 386 | divTupleL(Color3<T> &color, const tuple &t) |
| 387 | { |
| 388 | MATH_EXC_ON; |
| 389 | if(t.attr("__len__")() == 3) |
| 390 | return Color3<T>(color.x / extract<T>(t[0]), |
| 391 | color.y / extract<T>(t[1]), |
| 392 | color.z / extract<T>(t[2])); |
| 393 | else |
| 394 | throw std::invalid_argument ("Color3 expects tuple of length 3"); |
| 395 | } |
| 396 | |
| 397 | template <class T> |
| 398 | static Color3<T> |
nothing calls this directly
no outgoing calls
no test coverage detected