OpenTTD Source 20260531-master-g0e951f3528
Coord3D< T > Struct Template Reference

A coordinate with three dimensions. More...

#include <geometry_type.hpp>

Public Member Functions

constexpr Coord3D (T x, T y, T z)
constexpr auto operator<=> (const Coord3D< T > &) const =default
 Compare with another instance of this class.

Data Fields

T x = 0
 X coordinate.
T y = 0
 Y coordinate.
T z = 0
 Z coordinate.

Detailed Description

template<typename T>
struct Coord3D< T >

A coordinate with three dimensions.

Definition at line 49 of file geometry_type.hpp.

Constructor & Destructor Documentation

◆ Coord3D()

template<typename T>
Coord3D< T >::Coord3D ( T x,
T y,
T z )
inlineconstexpr

Definition at line 55 of file geometry_type.hpp.

Member Function Documentation

◆ operator<=>()

template<typename T>
auto Coord3D< T >::operator<=> ( const Coord3D< T > & ) const
constexprdefault

Compare with another instance of this class.

Returns
The std::strong_ordering of the comparison.

Field Documentation

◆ x

◆ y

◆ z


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