KOSMIndoorMap
navmeshtransform.cpp
14 const auto xScale = OSM::distance(bbox.min.lonF(), bbox.center().latF(), bbox.max.lonF(), bbox.center().latF()) / bbox.widthF();
15 const auto yScale = OSM::distance(bbox.center().lonF(), bbox.min.latF(), bbox.center().lonF(), bbox.max.latF()) / bbox.heightF();
17 m_transform = QTransform().scale(xScale, yScale).translate(-bbox.center().lonF(), -bbox.center().latF());
KOSM_EXPORT double distance(double lat1, double lon1, double lat2, double lon2)
Distance between two coordinates.
Definition geomath.cpp:16
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:54:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.