Stride Reference Manual  - generated for commit 9643b11
AABBox.h
Go to the documentation of this file.
1 /*
2  * This is free software: you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * any later version.
6  * The software is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  * You should have received a copy of the GNU General Public License
11  * along with the software. If not, see <http://www.gnu.org/licenses/>.
12  *
13  * Copyright 2019, Jan Broeckhove.
14  */
15 
16 #pragma once
17 
18 namespace geopop {
19 
23 template <typename P>
24 struct AABBox
25 {
26  AABBox() : lower(), upper(){};
27  AABBox(P l, P u) : lower(l), upper(u){};
28  P lower;
29  P upper;
30 };
31 
32 } // namespace geopop
AxisAlignedBoundingBox (hyperrectangle defined by lower and upper bound for every dimension)...
Definition: AABBox.h:24
Namespace for the geographic and demograhic classes.
Definition: Coordinate.h:21
P lower
The lower bound for every dimension.
Definition: AABBox.h:27
P upper
The upper bound for every dimension.
Definition: AABBox.h:29