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()

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

Definition at line 98 of file datatypes.h.

Member Function Documentation

◆ center()

constexpr Coordinate OSM::BoundingBox::center ( ) const
inlineconstexpr

Definition at line 129 of file datatypes.h.

◆ height()

constexpr uint32_t OSM::BoundingBox::height ( ) const
inlineconstexpr

Definition at line 115 of file datatypes.h.

◆ heightF()

constexpr double OSM::BoundingBox::heightF ( ) const
inlineconstexpr

Definition at line 124 of file datatypes.h.

◆ isValid()

constexpr bool OSM::BoundingBox::isValid ( ) const
inlineconstexpr

Definition at line 102 of file datatypes.h.

◆ operator==()

constexpr bool OSM::BoundingBox::operator== ( BoundingBox other) const
inlineconstexpr

Definition at line 106 of file datatypes.h.

◆ width()

constexpr uint32_t OSM::BoundingBox::width ( ) const
inlineconstexpr

Definition at line 111 of file datatypes.h.

◆ widthF()

constexpr double OSM::BoundingBox::widthF ( ) const
inlineconstexpr

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 Tue Mar 26 2024 11:20:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.