src/geo3d/ds/l/lib.hpp
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include "../p/lib.hpp" | ||
| 4 | |||
| 5 | namespace tifa_libs { | ||
| 6 | |||
| 7 | template <class FP> | ||
| 8 | struct line3d { | ||
| 9 | point3d<FP> l, r; | ||
| 10 | 108 | CEXP line3d(point3d<FP> CR s, point3d<FP> CR t) NE : l(s), r(t) {} | |
| 11 | |||
| 12 | friend auto& operator>>(istream_c auto& is, line3d& l) NE { return is >> l.l >> l.r; } | ||
| 13 | friend auto& operator<<(ostream_c auto& os, line3d CR l) NE { return os << l.l << ' ' << l.r; } | ||
| 14 | }; | ||
| 15 | |||
| 16 | } // namespace tifa_libs | ||
| 17 |