| 385 | |
| 386 | template <class T> |
| 387 | static T |
| 388 | distanceToTuple(Plane3<T> &plane, const tuple &t) |
| 389 | { |
| 390 | MATH_EXC_ON; |
| 391 | Vec3<T> point; |
| 392 | if(t.attr("__len__")() == 3) |
| 393 | { |
| 394 | point.x = extract<T>(t[0]); |
| 395 | point.y = extract<T>(t[1]); |
| 396 | point.z = extract<T>(t[2]); |
| 397 | |
| 398 | return plane.distanceTo(point); |
| 399 | } |
| 400 | else |
| 401 | throw std::domain_error ("Plane3 expects tuple of length 3"); |
| 402 | } |
| 403 | |
| 404 | template <class T> |
| 405 | static Vec3<T> |
nothing calls this directly
no outgoing calls
no test coverage detected