KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
intersection.h
Go to the documentation of this file.
1 
6 /*
7  * $Id: intersection.h 18035 2014-11-03 05:58:09Z predoehl $
8  */
9 
10 #ifndef QD_CPP_INTERSECTION_INCLUDED_IVILAB_UARIZONAVISION
11 #define QD_CPP_INTERSECTION_INCLUDED_IVILAB_UARIZONAVISION 1
12 
13 #include <qd_cpp/ratpoint.h>
14 #include <qd_cpp/pixpath.h>
15 
16 #include <vector>
17 #include <utility>
18 
19 
20 namespace kjb
21 {
22 namespace qd
23 {
24 
25 
26 
59 std::vector< std::pair<size_t, size_t> > get_intersections(
60  const PixPath& p,
61  bool filter_out_trivial_intersections = true
62 );
63 
64 
65 
66 std::vector< std::pair<size_t, size_t> > get_intersections(
67  const std::vector< RatPoint_line_segment >& sl
68 );
69 
70 
71 
72 } // end ns qd
73 } // end ns kjb
74 
75 #endif /* QD_CPP_INTERSECTION_INCLUDED_IVILAB_UARIZONAVISION */
std::vector< std::pair< size_t, size_t > > get_intersections(const PixPath &p, bool filter_out_trivial_intersections)
return all intersections of polygonal path segments
Definition: intersection.cpp:1079
Support for points and line segments with rational coordinates.
Contains definition for class PixPath.