| 411 | |
| 412 | template <class T> |
| 413 | static Vec3<T> |
| 414 | reflectVectorTuple(Plane3<T> &plane, const tuple &t) |
| 415 | { |
| 416 | MATH_EXC_ON; |
| 417 | Vec3<T> point; |
| 418 | if(t.attr("__len__")() == 3) |
| 419 | { |
| 420 | point.x = extract<T>(t[0]); |
| 421 | point.y = extract<T>(t[1]); |
| 422 | point.z = extract<T>(t[2]); |
| 423 | |
| 424 | return plane.reflectVector(point); |
| 425 | } |
| 426 | else |
| 427 | throw std::domain_error ("Plane3 expects tuple of length 3"); |
| 428 | } |
| 429 | |
| 430 | template <class T> |
| 431 | static bool |
nothing calls this directly
no outgoing calls
no test coverage detected