Exemplo n.º 1
0
        public static double GetDistance(Diem3D diem1, Diem3D diem2)
        {
            var v1 = new Vecto3D(diem1);
            var v2 = new Vecto3D(diem2);

            return((v2 - v1).Getlength());
        }
Exemplo n.º 2
0
 public Vecto3D(Diem3D diem1, Diem3D diem2)
 {
     this.x = diem2.x - diem1.x;
     this.y = diem2.y - diem1.y;
     this.z = diem2.z - diem1.z;
 }
Exemplo n.º 3
0
 public Vecto3D(Diem3D diem)
 {
     this.x = diem.x;
     this.y = diem.y;
     this.z = diem.z;
 }