From a9b231fe0aa28b9c4081edbc75f5a46fcff0cfe5 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Fri, 22 Apr 2005 09:33:32 +0000 Subject: MSD Version 0.03 svn path=/trunk/externals/nusmuk/; revision=2802 --- msd3D/main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'msd3D/main.cpp') diff --git a/msd3D/main.cpp b/msd3D/main.cpp index 9d0c884..2deb80a 100755 --- a/msd3D/main.cpp +++ b/msd3D/main.cpp @@ -482,10 +482,9 @@ protected: link[nb_link]->D1 = GetFloat(argv[4]); // D1 link[nb_link]->D2 = GetFloat(argv[5]); // D2 link[nb_link]->longx = link[nb_link]->mass1->posX - link[nb_link]->mass2->posX; // Lx[0] - if (link[nb_link]->longx < 0) - link[nb_link]->longueur = -link[nb_link]->longx; - else - link[nb_link]->longueur = link[nb_link]->longx ;// L[0] + link[nb_link]->longy = link[nb_link]->mass1->posY - link[nb_link]->mass2->posY; // Ly[0] + link[nb_link]->longz = link[nb_link]->mass1->posZ - link[nb_link]->mass2->posZ; // Lz[0] + link[nb_link]->longueur = sqrt(pow(link[nb_link]->longx,2)+pow(link[nb_link]->longy,2)+pow(link[nb_link]->longz,2));//L[0] link[nb_link]->nbr = id_link; // id number link[nb_link]->distance_old = link[nb_link]->longueur; // L[n-1] switch (argc) { -- cgit v1.2.1