OpenTTD
Functions
geometry_func.cpp File Reference

Geometry functions. More...

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

Go to the source code of this file.

Functions

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

Detailed Description

Geometry functions.

Definition in file geometry_func.cpp.

Function Documentation

◆ maxdim()

Dimension maxdim ( const Dimension d1,
const Dimension d2 
)

Compute bounding box of both dimensions.

Parameters
d1First dimension.
d2Second dimension.
Returns
The bounding box of both dimensions, the smallest dimension that surrounds both arguments.

Definition at line 24 of file geometry_func.cpp.

References max().

Referenced by VehicleGroupWindow::ComputeGroupInfoSize(), BaseVehicleListWindow::GetActionDropdownSize(), NetworkContentListWindow::NetworkContentListWindow(), SelectCompanyManagerFaceWindow::OnInit(), IndustryCargoesWindow::OnInit(), SelectGameWindow::UpdateWidgetSize(), SetDateWindow::UpdateWidgetSize(), SubsidyListWindow::UpdateWidgetSize(), BootstrapAskForDownloadWindow::UpdateWidgetSize(), BuildBridgeWindow::UpdateWidgetSize(), GoalListWindow::UpdateWidgetSize(), NewGRFParametersWindow::UpdateWidgetSize(), ReplaceVehicleWindow::UpdateWidgetSize(), BuildAirportWindow::UpdateWidgetSize(), NewsWindow::UpdateWidgetSize(), MusicTrackSelectionWindow::UpdateWidgetSize(), BuildIndustryWindow::UpdateWidgetSize(), CompanyStationsWindow::UpdateWidgetSize(), GameOptionsWindow::UpdateWidgetSize(), VehicleGroupWindow::UpdateWidgetSize(), GenerateLandscapeWindow::UpdateWidgetSize(), NetworkChatWindow::UpdateWidgetSize(), SaveLoadWindow::UpdateWidgetSize(), NetworkGameWindow::UpdateWidgetSize(), MusicWindow::UpdateWidgetSize(), StoryBookWindow::UpdateWidgetSize(), NetworkContentListWindow::UpdateWidgetSize(), NewGRFWindow::UpdateWidgetSize(), AIConfigWindow::UpdateWidgetSize(), TownDirectoryWindow::UpdateWidgetSize(), OrdersWindow::UpdateWidgetSize(), PaymentRatesGraphWindow::UpdateWidgetSize(), CreateScenarioWindow::UpdateWidgetSize(), BuildRailStationWindow::UpdateWidgetSize(), NetworkStartServerWindow::UpdateWidgetSize(), IndustryDirectoryWindow::UpdateWidgetSize(), BuildVehicleWindow::UpdateWidgetSize(), and NetworkClientListPopupWindow::UpdateWidgetSize().