1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/data/path.cpp

21 lines
405 B
C++
Raw Normal View History

2016-11-14 22:12:43 +01:00
#include "path.h"
RectC Path::boundingRect() const
{
if (size() < 2)
return RectC();
RectC ret(first().coordinates(), first().coordinates());
for (int i = 1; i < size(); i++)
ret.unite(at(i).coordinates());
return ret;
}
2016-11-14 22:12:43 +01:00
QDebug operator<<(QDebug dbg, const PathPoint &point)
{
dbg.nospace() << "PathPoint(" << point.distance() << ", "
<< point.coordinates() << ")";
2017-08-15 15:13:34 +02:00
return dbg.space();
2016-11-14 22:12:43 +01:00
}