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

Function rotatePointTuple

src/python/PyImath/PyImathLine.cpp:378–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376
377template <class T>
378static Vec3<T>
379rotatePointTuple(Line3<T> &line, const tuple &t, const T &r)
380{
381 MATH_EXC_ON;
382 if(t.attr("__len__")() == 3)
383 {
384 Vec3<T> p;
385 p.x = extract<T>(t[0]);
386 p.y = extract<T>(t[1]);
387 p.z = extract<T>(t[2]);
388
389 return IMATH_NAMESPACE::rotatePoint(p, line, r);
390 }
391 else
392 throw std::invalid_argument ( "Line3 expects tuple of length 3");
393}
394
395template <class T>
396static std::string Line3_repr(const Line3<T> &v)

Callers

nothing calls this directly

Calls 1

rotatePointFunction · 0.85

Tested by

no test coverage detected