OpenTTD Source 20241224-master-gf74b0cf984
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 30 of file geometry_type.hpp.

Constructor & Destructor Documentation

◆ Dimension() [1/2]

constexpr Dimension::Dimension ( )
inlineconstexpr

Definition at line 34 of file geometry_type.hpp.

◆ Dimension() [2/2]

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

Definition at line 35 of file geometry_type.hpp.

Member Function Documentation

◆ operator<()

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

Definition at line 37 of file geometry_type.hpp.

◆ operator==()

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

Definition at line 44 of file geometry_type.hpp.

Field Documentation

◆ height

uint Dimension::height

Definition at line 32 of file geometry_type.hpp.

◆ width

uint Dimension::width

Definition at line 31 of file geometry_type.hpp.


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