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