OSM::ZTile

Search for usage in LXR

#include <ztile.h>

Public Member Functions

constexpr ZTile (uint64_t _z, uint8_t _depth)
 
BoundingBox boundingBox () const
 
bool intersects (BoundingBox bbox) const
 
bool intersects (ZTile other) const
 
constexpr bool operator< (ZTile other) const
 
constexpr bool operator== (ZTile other) const
 
ZTile parent () const
 
std::array< ZTile, 4 > quadSplit () const
 
constexpr uint32_t size () const
 

Public Attributes

uint8_t depth = 0
 
uint64_t z = 0
 

Detailed Description

Tile in a quad tree made up out of z-order curve positions.

Definition at line 17 of file ztile.h.

Member Function Documentation

ZTile ZTile::parent ( ) const

The parent tile in a quad tree.

Definition at line 32 of file ztile.cpp.

std::array< ZTile, 4 > ZTile::quadSplit ( ) const

Split into four sub-tiles on one level below.

Definition at line 37 of file ztile.cpp.

constexpr uint32_t OSM::ZTile::size ( ) const
inline

tile size in 1e7-th degrees

Definition at line 36 of file ztile.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jul 29 2021 23:03:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.