Changed SumTrapezoids method to static
--HG-- branch : feature
This commit is contained in:
parent
e8deb4b29c
commit
40ef4732ca
|
@ -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;
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user