26 #ifndef WFMATH_INTERSECT_DECLS_H 27 #define WFMATH_INTERSECT_DECLS_H 29 #include <wfmath/const.h> 37 return proper ? x1 <= x2 : (x2 - x1) > numeric_constants<CoordType>::epsilon();
42 return !proper ? x1 <= x2 : x1 < x2;
47 return proper ? x1 >= x2 : (x1 - x2) > numeric_constants<CoordType>::epsilon();
52 return !proper ? x1 >= x2 : x1 > x2;
56 bool Intersect(
const AxisBox<dim>& b,
const Point<dim>& p,
bool proper);
58 bool Contains(
const Point<dim>& p,
const AxisBox<dim>& b,
bool proper);
61 bool Intersect(
const Ball<dim>& b,
const Point<dim>& p,
bool proper);
63 bool Contains(
const Point<dim>& p,
const Ball<dim>& b,
bool proper);
66 bool Intersect(
const Segment<dim>& s,
const Point<dim>& p,
bool proper);
68 bool Contains(
const Point<dim>& p,
const Segment<dim>& s,
bool proper);
71 bool Intersect(
const RotBox<dim>& r,
const Point<dim>& p,
bool proper);
73 bool Contains(
const Point<dim>& p,
const RotBox<dim>& r,
bool proper);
76 bool Intersect(
const AxisBox<dim>& b1,
const AxisBox<dim>& b2,
bool proper);
78 bool Contains(
const AxisBox<dim>& outer,
const AxisBox<dim>& inner,
bool proper);
81 bool Intersect(
const Ball<dim>& b,
const AxisBox<dim>& a,
bool proper);
83 bool Contains(
const Ball<dim>& b,
const AxisBox<dim>& a,
bool proper);
85 bool Contains(
const AxisBox<dim>& a,
const Ball<dim>& b,
bool proper);
88 bool Intersect(
const Segment<dim>& s,
const AxisBox<dim>& b,
bool proper);
90 bool Contains(
const Segment<dim>& s,
const AxisBox<dim>& b,
bool proper);
92 bool Contains(
const AxisBox<dim>& b,
const Segment<dim>& s,
bool proper);
95 bool Intersect(
const RotBox<dim>& r,
const AxisBox<dim>& b,
bool proper);
97 bool Contains(
const RotBox<dim>& r,
const AxisBox<dim>& b,
bool proper);
99 bool Contains(
const AxisBox<dim>& b,
const RotBox<dim>& r,
bool proper);
102 bool Intersect(
const Ball<dim>& b1,
const Ball<dim>& b2,
bool proper);
104 bool Contains(
const Ball<dim>& outer,
const Ball<dim>& inner,
bool proper);
107 bool Intersect(
const Segment<dim>& s,
const Ball<dim>& b,
bool proper);
109 bool Contains(
const Ball<dim>& b,
const Segment<dim>& s,
bool proper);
111 bool Contains(
const Segment<dim>& s,
const Ball<dim>& b,
bool proper);
114 bool Intersect(
const RotBox<dim>& r,
const Ball<dim>& b,
bool proper);
116 bool Contains(
const RotBox<dim>& r,
const Ball<dim>& b,
bool proper);
118 bool Contains(
const Ball<dim>& b,
const RotBox<dim>& r,
bool proper);
121 bool Intersect(
const Segment<dim>& s1,
const Segment<dim>& s2,
bool proper);
123 bool Contains(
const Segment<dim>& s1,
const Segment<dim>& s2,
bool proper);
126 bool Intersect(
const RotBox<dim>& r,
const Segment<dim>& s,
bool proper);
128 bool Contains(
const RotBox<dim>& r,
const Segment<dim>& s,
bool proper);
130 bool Contains(
const Segment<dim>& s,
const RotBox<dim>& r,
bool proper);
133 bool Intersect(
const RotBox<dim>& r1,
const RotBox<dim>& r2,
bool proper);
135 bool Contains(
const RotBox<dim>& outer,
const RotBox<dim>& inner,
bool proper);
138 bool Intersect(
const Polygon<dim>& r,
const Point<dim>& p,
bool proper);
140 bool Contains(
const Point<dim>& p,
const Polygon<dim>& r,
bool proper);
143 bool Intersect(
const Polygon<dim>& p,
const AxisBox<dim>& b,
bool proper);
145 bool Contains(
const Polygon<dim>& p,
const AxisBox<dim>& b,
bool proper);
147 bool Contains(
const AxisBox<dim>& b,
const Polygon<dim>& p,
bool proper);
150 bool Intersect(
const Polygon<dim>& p,
const Ball<dim>& b,
bool proper);
152 bool Contains(
const Polygon<dim>& p,
const Ball<dim>& b,
bool proper);
154 bool Contains(
const Ball<dim>& b,
const Polygon<dim>& p,
bool proper);
157 bool Intersect(
const Polygon<dim>& r,
const Segment<dim>& s,
bool proper);
159 bool Contains(
const Polygon<dim>& p,
const Segment<dim>& s,
bool proper);
161 bool Contains(
const Segment<dim>& s,
const Polygon<dim>& p,
bool proper);
164 bool Intersect(
const Polygon<dim>& p,
const RotBox<dim>& r,
bool proper);
166 bool Contains(
const Polygon<dim>& p,
const RotBox<dim>& r,
bool proper);
168 bool Contains(
const RotBox<dim>& r,
const Polygon<dim>& p,
bool proper);
171 bool Intersect(
const Polygon<dim>& p1,
const Polygon<dim>& p2,
bool proper);
173 bool Contains(
const Polygon<dim>& outer,
const Polygon<dim>& inner,
bool proper);
177 #endif // WFMATH_INTERSECT_DECLS_H Generic library namespace.
Definition: atlasconv.h:45
float CoordType
Basic floating point type.
Definition: const.h:140