KOSMIndoorMap
scenegeometry.cpp
89/* the algorithm in here would be pretty simple (see https://en.wikipedia.org/wiki/Polygon#Centroid)
90 * if it weren't for numeric stability. We need something that keeps sufficient precision (~7 digits)
94 * - scale the value by the bbox size, to enable the use of 64bit integers for the intermediate values.
96 * and thus become very large. As we don't use divisions on the intermediate values, integers work for this.
161 // project p on a line extending the line segment given by @p line, and clamp to that to the segment
162 const auto r = qBound(0.0, QPointF::dotProduct(p - line.p1(), line.p2() - line.p1()) / (len*len), 1.0);
QString path(const QString &relativePath)
OSM-based multi-floor indoor maps for buildings.
Definition locationqueryoverlayproxymodel.h:20
BoundedIntersection
IntersectionType intersects(const QLineF &line, QPointF *intersectionPoint) const const
qreal length() const const
QPointF p1() const const
QPointF p2() const const
const_reference at(qsizetype i) const const
iterator begin()
void clear()
iterator end()
void push_back(parameter_type value)
void reserve(qsizetype size)
qsizetype size() const const
LineToElement
qreal dotProduct(const QPointF &p1, const QPointF &p2)
qreal x() const const
qreal y() const const
QRectF boundingRect() const const
bool containsPoint(const QPointF &point, Qt::FillRule fillRule) const const
QPointF bottomLeft() const const
QPointF bottomRight() const const
QPointF center() const const
bool contains(const QPointF &point) const const
bool isEmpty() const const
QPointF topLeft() const const
QPointF topRight() const const
const QChar at(qsizetype position) const const
iterator begin()
iterator end()
bool isEmpty() const const
OddEvenFill
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.