34 using std::make_shared;
35 using std::shared_ptr;
49 using PtrBBox = shared_ptr<BBox const>;
50 using PairPtrBBox = pair<PtrBBox,PtrBBox>;
51 using VecPtrBBox = vector<PtrBBox>;
52 using VecPairPtrBBox = vector<PairPtrBBox>;
104 std::copy_n( bbox, 4, m_bbox );
123 std::copy_n( bbox_min, 2, m_bbox );
124 std::copy_n( bbox_max, 2, m_bbox+2 );
137 vector<PtrBBox>
const & bboxes,
143 this ->
join( bboxes );
148 real_type const * bbox() {
return m_bbox; }
149 real_type const * bbox_min() {
return m_bbox; }
150 real_type const * bbox_max() {
return m_bbox+2; }
170 std::copy_n( rhs.m_bbox, 4, m_bbox );
182 (box.
x_max() < this->x_min() ) ||
183 (box.
y_min() > this->y_max() ) ||
184 (box.
y_max() < this->y_min() ) );
191 join( vector<PtrBBox>
const & bboxes );
BBox const & operator=(BBox const &rhs)
Definition BBox.hxx:169
integer const & Ipos() const
return BBOX position
Definition BBox.hxx:163
real_type const & y_max() const
y-maximum coordinate of the bbox
Definition BBox.hxx:160
bool collision(BBox const &box) const
Definition BBox.hxx:180
real_type & y_max()
y-maximum coordinate of the bbox
Definition BBox.hxx:155
BBox(real_type const bbox[4], integer id, integer ipos)
Definition BBox.hxx:99
BBox(real_type xmin, real_type ymin, real_type xmax, real_type ymax, integer id, integer ipos)
Definition BBox.hxx:76
void print(ostream_type &stream) const
Definition BBox.cc:122
real_type & x_min()
x-minimum coordinate of the bbox
Definition BBox.hxx:152
BBox(real_type const bbox_min[2], real_type const bbox_max[2], integer id, integer ipos)
Definition BBox.hxx:117
real_type const & x_max() const
x-maximum coordinate of the bbox
Definition BBox.hxx:159
real_type max_distance(real_type x, real_type y) const
Definition BBox.cc:113
real_type const & x_min() const
x-minimum coordinate of the bbox
Definition BBox.hxx:157
real_type & y_min()
y-minimum coordinate of the bbox
Definition BBox.hxx:153
real_type & x_max()
x-maximum coordinate of the bbox
Definition BBox.hxx:154
real_type const & y_min() const
y-minimum coordinate of the bbox
Definition BBox.hxx:158
real_type distance(real_type x, real_type y) const
Definition BBox.cc:78
void join(vector< PtrBBox > const &bboxes)
Definition BBox.cc:57
BBox(vector< PtrBBox > const &bboxes, integer id, integer ipos)
Definition BBox.hxx:136
integer const & Id() const
return BBOX id
Definition BBox.hxx:162
std::basic_ostream< char > ostream_type
output streaming
Definition Clothoids.hh:78
ostream_type & operator<<(ostream_type &stream, Biarc const &bi)
Definition Biarc.cc:1013
double real_type
real type number
Definition Clothoids.hh:79
int integer
integer type number
Definition Clothoids.hh:80