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
QTransform & scale(qreal sx, qreal sy)
QTransform & translate(qreal dx, qreal dy)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.