MCPcopy Create free account
hub / github.com/comaps/comaps / IntersectionResult

Class IntersectionResult

libs/geometry/segment2d.hpp:11–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace m2
10{
11struct 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
27struct Segment2D
28{

Callers 2

IntersectFunction · 0.70
IntersectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected