-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
44 lines (36 loc) · 1.24 KB
/
Program.cs
File metadata and controls
44 lines (36 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
namespace OOPLab2
{
class Program
{
static void Main(string[] args)
{
Piramid piramid = new Piramid(Height: 75, Base: Matrix.RotateX(-1.57079633) * new RegularShape(50, 5));
Console.WriteLine(piramid.Volum);
PoleToDraw pole = new PoleToDraw(90, 30);
pole.cam *= Matrix.Move(new Vector(0,0,0))*Matrix.RotateX(-0.3)*Matrix.RotateY(1.5);
/*for (int i = 0; i < 75; i++)
{
pole.Draw(piramid);
pole.cam *= Matrix.RotateY(0.2)*Matrix.RotateX(0.0);
//Console.Clear();
Console.Write(pole.Export());
pole.Clear();
//Thread.Sleep(200);
}*/
Poligon p ;
for (int i = 3; i < 10; i++)
{
p = new RegularShape(70, i);
for (int j = 0; j < 10; j++)
{
pole.Draw(p);
pole.cam *= Matrix.RotateY(0.314);
Console.Clear();
Console.Write(pole.Export());
pole.Clear();
Thread.Sleep(200);
}
}
}
}
}