示例#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));
 }
示例#2
0
 public Triangle(Dot a, Dot b, Dot c)
 {
     this.a = a;
     this.b = b;
     this.c = c;
 }
示例#3
0
 public void AddTriangle(Dot a, Dot b, Dot c)
 {
     Triangle temp = new Triangle(a,b,c);
     figures.Add(temp);
 }
示例#4
0
 public Quadrangle(Dot a, Dot b, Dot c, Dot d)
 {
     this.a = a;
     this.b = b;
     this.c = c;
     this.d = b;
 }
示例#5
0
 public void AddQuadrangle(Dot a, Dot b, Dot c, Dot d)
 {
     Quadrangle temp = new Quadrangle(a, b, c, d);
     figures.Add(temp);
 }