OSM::BoundingBox

Search for usage in LXR

OSM::BoundingBox Class Reference

#include <datatypes.h>

Public Member Functions

constexpr BoundingBox (Coordinate c1, Coordinate c2)
 
constexpr Coordinate center () const
 
constexpr uint32_t height () const
 
constexpr double heightF () const
 
constexpr bool isValid () const
 
constexpr bool operator== (BoundingBox other) const
 
constexpr uint32_t width () const
 
constexpr double widthF () const
 

Public Attributes

Coordinate max
 
Coordinate min
 

Detailed Description

Bounding box, ie.

a pair of coordinates.

Definition at line 95 of file datatypes.h.

Constructor & Destructor Documentation

◆ BoundingBox()

OSM::BoundingBox::BoundingBox ( Coordinate c1,
Coordinate c2 )
inlineconstexpr

Definition at line 98 of file datatypes.h.

Member Function Documentation

◆ center()

Coordinate OSM::BoundingBox::center ( ) const
inlinenodiscardconstexpr

Definition at line 129 of file datatypes.h.

◆ height()

uint32_t OSM::BoundingBox::height ( ) const
inlinenodiscardconstexpr

Definition at line 115 of file datatypes.h.

◆ heightF()

double OSM::BoundingBox::heightF ( ) const
inlinenodiscardconstexpr

Definition at line 124 of file datatypes.h.

◆ isValid()

bool OSM::BoundingBox::isValid ( ) const
inlinenodiscardconstexpr

Definition at line 102 of file datatypes.h.

◆ operator==()

bool OSM::BoundingBox::operator== ( BoundingBox other) const
inlinenodiscardconstexpr

Definition at line 106 of file datatypes.h.

◆ width()

uint32_t OSM::BoundingBox::width ( ) const
inlinenodiscardconstexpr

Definition at line 111 of file datatypes.h.

◆ widthF()

double OSM::BoundingBox::widthF ( ) const
inlinenodiscardconstexpr

Definition at line 120 of file datatypes.h.

Member Data Documentation

◆ max

Coordinate OSM::BoundingBox::max

Definition at line 135 of file datatypes.h.

◆ min

Coordinate OSM::BoundingBox::min

Definition at line 134 of file datatypes.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.