# geometry_func.cpp File Reference

Geometry functions. More...

`#include "../stdafx.h"`
`#include "geometry_func.hpp"`
`#include "math_func.hpp"`

Go to the source code of this file.

## Functions
Dimension | maxdim (const Dimension &d1, const Dimension &d2)
| Compute bounding box of both dimensions.

## Detailed Description

Geometry functions.

Definition in file geometry_func.cpp.

## Function Documentation

Dimension maxdim | ( | const Dimension & | d1,
|  | const Dimension & | d2 |
| ) |  |  |

Compute bounding box of both dimensions.

Parameters:

  | d1 | First dimension.
  | d2 | Second dimension.

Returns:
  The bounding box of both dimensions, the smallest dimension that surrounds both arguments.

Definition at line 22 of file geometry_func.cpp.

References Dimension::height, max(), and Dimension::width.

Referenced by SelectCompanyManagerFaceWindow::OnInit(), NWidgetLeaf::SetupSmallestSize(), NWidgetBackground::SetupSmallestSize(), VehicleDetailsWindow::UpdateWidgetSize(), TownDirectoryWindow::UpdateWidgetSize(), TownAuthorityWindow::UpdateWidgetSize(), SelectStationWindow< T >::UpdateWidgetSize(), CompanyStationsWindow::UpdateWidgetSize(), OrdersWindow::UpdateWidgetSize(), NewsWindow::UpdateWidgetSize(), NewGRFWindow::UpdateWidgetSize(), IndustryDirectoryWindow::UpdateWidgetSize(), BuildIndustryWindow::UpdateWidgetSize(), SetDateWindow::UpdateWidgetSize(), CompanyWindow::UpdateWidgetSize(), SelectCompanyManagerFaceWindow::UpdateWidgetSize(), SelectCompanyLiveryWindow::UpdateWidgetSize(), and ReplaceVehicleWindow::UpdateWidgetSize().