| 269 | |
| 270 | template <class T, class S> |
| 271 | static object |
| 272 | intersect1(const Plane3<T> &plane, const Line3<S> &line) |
| 273 | { |
| 274 | MATH_EXC_ON; |
| 275 | Vec3<T> intersection; |
| 276 | Line3<T> l; |
| 277 | l.pos = line.pos; |
| 278 | l.dir = line.dir; |
| 279 | if(plane.intersect(l, intersection)) |
| 280 | return object(intersection); |
| 281 | |
| 282 | return object(); |
| 283 | |
| 284 | } |
| 285 | |
| 286 | template <class T> |
| 287 | static void |