| 126 | |
| 127 | template <class T> |
| 128 | static T |
| 129 | distanceToTuple(Line3<T> line, const tuple &t) |
| 130 | { |
| 131 | Vec3<T> v; |
| 132 | if(t.attr("__len__")() == 3) |
| 133 | { |
| 134 | v.x = extract<T>(t[0]); |
| 135 | v.y = extract<T>(t[1]); |
| 136 | v.z = extract<T>(t[2]); |
| 137 | |
| 138 | return line.distanceTo(v); |
| 139 | } |
| 140 | else |
| 141 | throw std::invalid_argument ( "Line3 expects tuple of length 3"); |
| 142 | } |
| 143 | |
| 144 | template <class T> |
| 145 | static Vec3<T> |
nothing calls this directly
no outgoing calls
no test coverage detected