, Visual C#


         


x2 =
Convert.ToSingle(Points[x, y].trans_coord[0]);
y2 =
Convert.ToSingle(Points[x, y].trans_coord[1]);
// :
//e.Graphics.DrawLine(myPen, x1, y1, x2, y2);
// :
i = i + 2;
myArrayVCsharp[i, 0] = x1;
myArrayVCsharp[i, 1] = y1;
myArrayVCsharp[i + 1, 0] = x2;
myArrayVCsharp[i + 1, 1] = y2;
N_1_myArrayCsharp = i + 1; //1- . .
}
}
// myArrayVCsharp[i, j]
// ,
// yz:
i = N_1_myArrayCsharp - 1;
for (int y = 0; y <= y_max; y++)
{
x2 =
Convert.ToSingle(Points[0, y].trans_coord[0]);
y2 =
Convert.ToSingle(Points[0, y].trans_coord[1]);
for (int x = 1; x <= x_max; x++)
{
x1 = x2; y1 = y2;
x2 =
Convert.ToSingle(Points[x, y].trans_coord[0]);
y2 =
Convert.ToSingle(Points[x, y].trans_coord[1]);
// :
//e.Graphics.DrawLine(myPen,x1,y1, x2, y2);
// :
i = i + 2;
myArrayVCsharp[i, 0] = x1;
myArrayVCsharp[i, 1] = y1;
myArrayVCsharp[i + 1, 0] = x2;
myArrayVCsharp[i + 1, 1] = y2;
N_2_myArrayCsharp = i + 1; //2- . .
}
}
// (axes):
for (int k = 0; k <= 3; k++)
Axes[k].Transformation(tr);
// :
Pen myPenAxes = new Pen(Color.Red, 0);
i = N_2_myArrayCsharp - 1;
x1 = Convert.ToSingle(Axes[0].trans_coord[0]);