| 191 | |
| 192 | template <class T> |
| 193 | static void |
| 194 | setPositionTuple(Line3<T> &line, const tuple &t) |
| 195 | { |
| 196 | Vec3<T> pos; |
| 197 | if(t.attr("__len__")() == 3) |
| 198 | { |
| 199 | pos.x = extract<T>(t[0]); |
| 200 | pos.y = extract<T>(t[1]); |
| 201 | pos.z = extract<T>(t[2]); |
| 202 | |
| 203 | line.pos = pos; |
| 204 | } |
| 205 | else |
| 206 | throw std::invalid_argument ( "Line3 expects tuple of length 3"); |
| 207 | } |
| 208 | |
| 209 | template <class T> |
| 210 | static Vec3<T> |
nothing calls this directly
no outgoing calls
no test coverage detected