MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / divTupleL

Function divTupleL

src/python/PyImath/PyImathColor3.cpp:385–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383
384template <class T>
385static Color3<T>
386divTupleL(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
397template <class T>
398static Color3<T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected