10#ifndef GEOMETRY_FUNC_HPP
11#define GEOMETRY_FUNC_HPP
24 return (r.left | r.top | r.right | r.bottom) == 0;
bool IsEmptyRect(const Rect &r)
Check if a rectangle is empty.
Rect BoundingRect(const Rect &r1, const Rect &r2)
Compute the bounding rectangle around two rectangles.
Dimension maxdim(const Dimension &d1, const Dimension &d2)
Compute bounding box of both dimensions.
All geometry types in OpenTTD.
Dimensions (a width and height) of a rectangle in 2D.
Specification of a rectangle with absolute coordinates of all edges.