| 376 | |
| 377 | template <class T> |
| 378 | static Vec3<T> |
| 379 | rotatePointTuple(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 | |
| 395 | template <class T> |
| 396 | static std::string Line3_repr(const Line3<T> &v) |
nothing calls this directly
no test coverage detected