public static double GetDistance(Diem3D diem1, Diem3D diem2) { var v1 = new Vecto3D(diem1); var v2 = new Vecto3D(diem2); return((v2 - v1).Getlength()); }
public Vecto3D(Diem3D diem1, Diem3D diem2) { this.x = diem2.x - diem1.x; this.y = diem2.y - diem1.y; this.z = diem2.z - diem1.z; }
public Vecto3D(Diem3D diem) { this.x = diem.x; this.y = diem.y; this.z = diem.z; }