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

Function setPositionTuple

src/python/PyImath/PyImathLine.cpp:193–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192template <class T>
193static void
194setPositionTuple(Line3<T> &line, const tuple &t)
195{
196 Vec3<T> pos;
197 if(t.attr("__len__")() == 3)
198 {
199 pos.x = extract<T>(t[0]);
200 pos.y = extract<T>(t[1]);
201 pos.z = extract<T>(t[2]);
202
203 line.pos = pos;
204 }
205 else
206 throw std::invalid_argument ( "Line3 expects tuple of length 3");
207}
208
209template <class T>
210static Vec3<T>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected