OpenTTD
geometry_func.hpp
Go to the documentation of this file.
1 /* $Id: geometry_func.hpp 17248 2009-08-21 20:21:05Z rubidium $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * OpenTTD 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, version 2.
6  * OpenTTD 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.
7  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8  */
9 
12 #ifndef GEOMETRY_FUNC_HPP
13 #define GEOMETRY_FUNC_HPP
14 
15 #include "geometry_type.hpp"
16 
17 Dimension maxdim(const Dimension &d1, const Dimension &d2);
18 
19 #endif /* GEOMETRY_FUNC_HPP */
All geometry types in OpenTTD.
Dimensions (a width and height) of a rectangle in 2D.
Dimension maxdim(const Dimension &d1, const Dimension &d2)
Compute bounding box of both dimensions.