| 359 | |
| 360 | template <class T> |
| 361 | static Vec3<T> |
| 362 | reflectPointTuple(Plane3<T> &plane, const tuple &t) |
| 363 | { |
| 364 | MATH_EXC_ON; |
| 365 | Vec3<T> point; |
| 366 | if(t.attr("__len__")() == 3) |
| 367 | { |
| 368 | point.x = extract<T>(t[0]); |
| 369 | point.y = extract<T>(t[1]); |
| 370 | point.z = extract<T>(t[2]); |
| 371 | |
| 372 | return plane.reflectPoint(point); |
| 373 | } |
| 374 | else |
| 375 | throw std::domain_error ("Plane3 expects tuple of length 3"); |
| 376 | } |
| 377 | |
| 378 | template <class T> |
| 379 | static T |
nothing calls this directly
no outgoing calls
no test coverage detected