| 1 | #include "primitives3d.cpp" |
| 2 | double mixed(P(a), P(b), P(c)) { return a % (b * c); } |
| 3 | bool cmpy(const point3d& a, const point3d& b) { |
| 4 | if (abs(a.y-b.y) > EPS) return a.y < b.y; |
| 5 | if (abs(a.x-b.x) > EPS) return a.x < b.x; |
| 6 | return a.z < b.z; } |
| 7 | point3d slp; |
| 8 | bool cmpsl(const point3d& a, const point3d& b) { |
| 9 | point3d ad = a-slp, bd = b-slp; |