mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Added missing reference
This commit is contained in:
parent
fa0c09b30c
commit
df1be4aeb9
@ -201,7 +201,7 @@ static qreal area(const QVector<QPointF> &polygon)
|
|||||||
return area;
|
return area;
|
||||||
}
|
}
|
||||||
|
|
||||||
static QPointF centroid(const QVector<QPointF> polygon)
|
static QPointF centroid(const QVector<QPointF> &polygon)
|
||||||
{
|
{
|
||||||
qreal cx = 0, cy = 0;
|
qreal cx = 0, cy = 0;
|
||||||
qreal factor = 1.0 / (6.0 * area(polygon));
|
qreal factor = 1.0 / (6.0 * area(polygon));
|
||||||
|
Loading…
Reference in New Issue
Block a user