Changed SumTrapezoids method to static

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-11-22 03:01:56 +02:00
parent e8deb4b29c
commit 40ef4732ca
2 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ QPointF VAbstractDetail::SingleParallelPoint(const QLineF &line, const qreal &an
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
qreal VAbstractDetail::SumTrapezoids(int n, QVector<qreal> x, QVector<qreal> y) const qreal VAbstractDetail::SumTrapezoids(int n, QVector<qreal> x, QVector<qreal> y)
{ {
// Calculation a polygon area through the sum of the areas of trapezoids // Calculation a polygon area through the sum of the areas of trapezoids
qreal s, res = 0; qreal s, res = 0;

View File

@ -65,7 +65,7 @@ public:
void setWidth(const qreal &value); void setWidth(const qreal &value);
static QVector<QPointF> Equidistant(const QVector<QPointF> &points, const EquidistantType &eqv, qreal width); static QVector<QPointF> Equidistant(const QVector<QPointF> &points, const EquidistantType &eqv, qreal width);
qreal SumTrapezoids(int n, QVector<qreal> x, QVector<qreal> y) const; static qreal SumTrapezoids(int n, QVector<qreal> x, QVector<qreal> y);
protected: protected: