returns the intersection point of the line with plane p assuming plane and line are not parallel
| 185 | // returns the intersection point of the line with plane p |
| 186 | // assuming plane and line are not parallel |
| 187 | p3 inter(plane p) { |
| 188 | // assert((d | p.n) != 0); // no intersection if parallel |
| 189 | return o - d * p.side(o) / (d | p.n); |
| 190 | } |
| 191 | }; |
| 192 | |
| 193 | // smallest distance between two lines |