| 9 | namespace m2 |
| 10 | { |
| 11 | struct IntersectionResult |
| 12 | { |
| 13 | enum class Type |
| 14 | { |
| 15 | Zero, |
| 16 | One, |
| 17 | Infinity |
| 18 | }; |
| 19 | |
| 20 | explicit IntersectionResult(Type type) : m_type(type) { ASSERT_NOT_EQUAL(m_type, Type::One, ()); } |
| 21 | explicit IntersectionResult(PointD const & point) : m_point(point), m_type(Type::One) {} |
| 22 | |
| 23 | PointD m_point; |
| 24 | Type m_type; |
| 25 | }; |
| 26 | |
| 27 | struct Segment2D |
| 28 | { |