private InterpolatePoints ( List |
||
p | List |
|
Résultat | void |
private void InterpolatePoints(List<Point> p)
{
for (var i = 0; i < p.Count - 1;)
{
p.Insert(i + 1, new Point((p[i].X + p[i + 1].X)/2, (p[i].Y + p[i + 1].Y)/2));
i += 2;
}
}