mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-19 04:02:09 +01:00
18 lines
314 B
C
18 lines
314 B
C
|
#ifndef POLYGON_H
|
||
|
#define POLYGON_H
|
||
|
|
||
|
#include <QList>
|
||
|
#include <QVector>
|
||
|
#include "common/coordinates.h"
|
||
|
#include "common/rectc.h"
|
||
|
|
||
|
class Polygon : public QList<QVector<Coordinates> >
|
||
|
{
|
||
|
public:
|
||
|
bool isValid() const {return !isEmpty() && first().size() >= 3;}
|
||
|
|
||
|
RectC boundingRect() const;
|
||
|
};
|
||
|
|
||
|
#endif // POLYGON_H
|