for int pointList Count for int pointList Count if touchPoint pointLis

1
2
3
4
5
6
7
8
9
for (int j = 0; j < pointList.Count; j++)
{
for (int i = 0; i < pointList[j].Count; i++)
{
if (i != touchPoint)
pointList[j][i] = new Point((int)(-Math.Sin(a) * (pointList[j][i].Y - pointList[touchKey][touchPoint].Y) + Math.Cos(a) * (pointList[j][i].X - pointList[touchKey][touchPoint].X) + pointList[touchKey][touchPoint].X),
(int)(Math.Cos(a) * (pointList[j][i].Y - pointList[touchKey][touchPoint].Y) + Math.Sin(a) * (pointList[j][i].X - pointList[touchKey][touchPoint].X) + pointList[touchKey][touchPoint].Y));
}
}