From: malaterre Date: Sat, 23 Jul 2005 01:27:57 +0000 (+0000) Subject: BUG: Fix ProductVectorial. Big thanks to Sean McInerney for very accurate review... X-Git-Tag: Version1.2.bp~272 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7a6f4850521b56e6b907cb8c7938471898613fa4;p=gdcm.git BUG: Fix ProductVectorial. Big thanks to Sean McInerney for very accurate review of CVS code! --- diff --git a/src/gdcmFile.cxx b/src/gdcmFile.cxx index edbccb80..9f095235 100644 --- a/src/gdcmFile.cxx +++ b/src/gdcmFile.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.cxx,v $ Language: C++ - Date: $Date: 2005/07/23 01:23:55 $ - Version: $Revision: 1.257 $ + Date: $Date: 2005/07/23 01:27:57 $ + Version: $Revision: 1.258 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1946,7 +1946,7 @@ vector3D File::ProductVectorial(vector3D vec1, vector3D vec2) // # ------------------------- Other : ------------------------------------- vector3D vec3; - vec3.x = vec1.y*vec3.z - vec1.z*vec2.y; + vec3.x = vec1.y*vec2.z - vec1.z*vec2.y; vec3.y = -( vec1.x*vec2.z - vec1.z*vec2.x); vec3.z = vec1.x*vec2.y - vec1.y*vec2.x; /*