class IShape
{
public:
virtual Vector FarthestPointInDirection(Vector direction) = 0; // pure virtual function
};
class Polygon : public IShape{
...
Vector FarthestPointInDirection(Vector direction) override{
....
}
};
Vector support(IShape& a, IShape& b, Vector direction){
Vector aFar = a.FarthestPointInDirection(direction);
Vector bFar = b.FarthestPointInDirection(direction);
return *aFar.Sub(bFar);
}
CONFIG -= qt
QT += core gui widgets network
private:
QList<QwtPlotCurve> graph;
for(int i=0; i < 10; i++)
{
QwtPlotCurve curve;
carve.attach(…);
graph.push_back(curve);
}
for (int i = 0; i < Reader_kol; i++)
for (int i = totalReaderCnt; i < totalReaderCnt + Reader_kol; i++)