Beispiel #1
0
 public static double Lenght(Dot a, Dot b)
 {
     return Math.Sqrt(Math.Pow(a.X - b.X, 2)) + Math.Sqrt(Math.Pow(a.Y - b.Y, 2)) + Math.Sqrt(Math.Pow(a.Z - b.Z, 2));
 }
Beispiel #2
0
 public Triangle(Dot a, Dot b, Dot c)
 {
     this.a = a;
     this.b = b;
     this.c = c;
 }
Beispiel #3
0
 public void AddTriangle(Dot a, Dot b, Dot c)
 {
     Triangle temp = new Triangle(a,b,c);
     figures.Add(temp);
 }
Beispiel #4
0
 public Quadrangle(Dot a, Dot b, Dot c, Dot d)
 {
     this.a = a;
     this.b = b;
     this.c = c;
     this.d = b;
 }
Beispiel #5
0
 public void AddQuadrangle(Dot a, Dot b, Dot c, Dot d)
 {
     Quadrangle temp = new Quadrangle(a, b, c, d);
     figures.Add(temp);
 }