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;
56bool Intersect(
const AxisBox<dim>& b,
const Point<dim>& p,
bool proper);
58bool Contains(
const Point<dim>& p,
const AxisBox<dim>& b,
bool proper);
61bool Intersect(
const Ball<dim>& b,
const Point<dim>& p,
bool proper);
63bool Contains(
const Point<dim>& p,
const Ball<dim>& b,
bool proper);
66bool Intersect(
const Segment<dim>& s,
const Point<dim>& p,
bool proper);
68bool Contains(
const Point<dim>& p,
const Segment<dim>& s,
bool proper);
71bool Intersect(
const RotBox<dim>& r,
const Point<dim>& p,
bool proper);
73bool Contains(
const Point<dim>& p,
const RotBox<dim>& r,
bool proper);
76bool Intersect(
const AxisBox<dim>& b1,
const AxisBox<dim>& b2,
bool proper);
78bool Contains(
const AxisBox<dim>& outer,
const AxisBox<dim>& inner,
bool proper);
81bool Intersect(
const Ball<dim>& b,
const AxisBox<dim>& a,
bool proper);
83bool Contains(
const Ball<dim>& b,
const AxisBox<dim>& a,
bool proper);
85bool Contains(
const AxisBox<dim>& a,
const Ball<dim>& b,
bool proper);
88bool Intersect(
const Segment<dim>& s,
const AxisBox<dim>& b,
bool proper);
90bool Contains(
const Segment<dim>& s,
const AxisBox<dim>& b,
bool proper);
92bool Contains(
const AxisBox<dim>& b,
const Segment<dim>& s,
bool proper);
95bool Intersect(
const RotBox<dim>& r,
const AxisBox<dim>& b,
bool proper);
97bool Contains(
const RotBox<dim>& r,
const AxisBox<dim>& b,
bool proper);
99bool Contains(
const AxisBox<dim>& b,
const RotBox<dim>& r,
bool proper);
102bool Intersect(
const Ball<dim>& b1,
const Ball<dim>& b2,
bool proper);
104bool Contains(
const Ball<dim>& outer,
const Ball<dim>& inner,
bool proper);
107bool Intersect(
const Segment<dim>& s,
const Ball<dim>& b,
bool proper);
109bool Contains(
const Ball<dim>& b,
const Segment<dim>& s,
bool proper);
111bool Contains(
const Segment<dim>& s,
const Ball<dim>& b,
bool proper);
114bool Intersect(
const RotBox<dim>& r,
const Ball<dim>& b,
bool proper);
116bool Contains(
const RotBox<dim>& r,
const Ball<dim>& b,
bool proper);
118bool Contains(
const Ball<dim>& b,
const RotBox<dim>& r,
bool proper);
121bool Intersect(
const Segment<dim>& s1,
const Segment<dim>& s2,
bool proper);
123bool Contains(
const Segment<dim>& s1,
const Segment<dim>& s2,
bool proper);
126bool Intersect(
const RotBox<dim>& r,
const Segment<dim>& s,
bool proper);
128bool Contains(
const RotBox<dim>& r,
const Segment<dim>& s,
bool proper);
130bool Contains(
const Segment<dim>& s,
const RotBox<dim>& r,
bool proper);
133bool Intersect(
const RotBox<dim>& r1,
const RotBox<dim>& r2,
bool proper);
135bool Contains(
const RotBox<dim>& outer,
const RotBox<dim>& inner,
bool proper);
138bool Intersect(
const Polygon<dim>& r,
const Point<dim>& p,
bool proper);
140bool Contains(
const Point<dim>& p,
const Polygon<dim>& r,
bool proper);
143bool Intersect(
const Polygon<dim>& p,
const AxisBox<dim>& b,
bool proper);
145bool Contains(
const Polygon<dim>& p,
const AxisBox<dim>& b,
bool proper);
147bool Contains(
const AxisBox<dim>& b,
const Polygon<dim>& p,
bool proper);
150bool Intersect(
const Polygon<dim>& p,
const Ball<dim>& b,
bool proper);
152bool Contains(
const Polygon<dim>& p,
const Ball<dim>& b,
bool proper);
154bool Contains(
const Ball<dim>& b,
const Polygon<dim>& p,
bool proper);
157bool Intersect(
const Polygon<dim>& r,
const Segment<dim>& s,
bool proper);
159bool Contains(
const Polygon<dim>& p,
const Segment<dim>& s,
bool proper);
161bool Contains(
const Segment<dim>& s,
const Polygon<dim>& p,
bool proper);
164bool Intersect(
const Polygon<dim>& p,
const RotBox<dim>& r,
bool proper);
166bool Contains(
const Polygon<dim>& p,
const RotBox<dim>& r,
bool proper);
168bool Contains(
const RotBox<dim>& r,
const Polygon<dim>& p,
bool proper);
171bool Intersect(
const Polygon<dim>& p1,
const Polygon<dim>& p2,
bool proper);
173bool Contains(
const Polygon<dim>& outer,
const Polygon<dim>& inner,
bool proper);
Generic library namespace.
Definition atlasconv.h:45
float CoordType
Basic floating point type.
Definition const.h:140