OpenTTD Source 20260206-master-g4d4e37dbf1
Dimension Struct Reference

Dimensions (a width and height) of a rectangle in 2D. More...

#include <geometry_type.hpp>

Public Member Functions

constexpr Dimension (uint w, uint h)
bool operator< (const Dimension &other) const
bool operator== (const Dimension &other) const

Data Fields

uint width
uint height

Detailed Description

Dimensions (a width and height) of a rectangle in 2D.

Definition at line 56 of file geometry_type.hpp.

Constructor & Destructor Documentation

◆ Dimension() [1/2]

Dimension::Dimension ( )
inlineconstexpr

Definition at line 60 of file geometry_type.hpp.

◆ Dimension() [2/2]

Dimension::Dimension ( uint w,
uint h )
inlineconstexpr

Definition at line 61 of file geometry_type.hpp.

Member Function Documentation

◆ operator<()

bool Dimension::operator< ( const Dimension & other) const
inline

Definition at line 63 of file geometry_type.hpp.

◆ operator==()

bool Dimension::operator== ( const Dimension & other) const
inline

Definition at line 70 of file geometry_type.hpp.

Field Documentation

◆ height

uint Dimension::height

Definition at line 58 of file geometry_type.hpp.

◆ width

uint Dimension::width

Definition at line 57 of file geometry_type.hpp.


The documentation for this struct was generated from the following file: