曲線を滑らかにしたいのですが、どのアプローチに従うべきかわかりません。パターンはベクトルに保存されます。
class Point2D
{
public:
double x, y;
Point2D()
{
this->x=0;
this->y=0;
}
Point2D(double x, double y)
{
this->x = x;
this->y = y;
}
}
vector<Point2D> vec1;
vec1:
*
* *
. .
. .
. .
. .
. . .
.
平滑化後に予想されるパターン:
*
* *
. .
. .
. .
. .
. . .
.