/* * Copyright (C) 2023 Christopher J. Howard * * This file is part of Antkeeper source code. * * Antkeeper source code is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Antkeeper source code is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with Antkeeper source code. If not, see . */ #ifndef ANTKEEPER_GEOM_QUADTREE_HPP #define ANTKEEPER_GEOM_QUADTREE_HPP #include "geom/hyperoctree.hpp" #include namespace geom { /// A quadtree, or 2-dimensional hyperoctree. template using quadtree = hyperoctree; /// Quadtree with an 8-bit node type (2 depth levels). template using quadtree8 = quadtree; /// Quadtree with a 16-bit node type (6 depth levels). template using quadtree16 = quadtree; /// Quadtree with a 32-bit node type (13 depth levels). template using quadtree32 = quadtree; /// Quadtree with a 64-bit node type (29 depth levels). template using quadtree64 = quadtree; /// Quadtree with unordered node storage and traversal. template using unordered_quadtree = quadtree; /// Unordered quadtree with an 8-bit node type (2 depth levels). typedef unordered_quadtree unordered_quadtree8; /// Unordered quadtree with a 16-bit node type (6 depth levels). typedef unordered_quadtree unordered_quadtree16; /// Unordered quadtree with a 32-bit node type (13 depth levels). typedef unordered_quadtree unordered_quadtree32; /// Unordered quadtree with a 64-bit node type (29 depth levels). typedef unordered_quadtreeunordered_quadtree64; } // namespace geom #endif // ANTKEEPER_GEOM_QUADTREE_HPP