Commit 85187429 authored by saubatn's avatar saubatn
Browse files

FIXED : Update return status of cross product function.

Previous version did not compile on Windows MSCV platform.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@202 ec899d31-69d1-42ba-9299-647d76f65fb3
parent 49503788
......@@ -46,7 +46,7 @@ double timeParameter2double(mml::TimeParameter& t);
double dotProduct(double vec1[3], double vec2[3]);
/// compute cross product
double crossProduct(double vec1[3], double vec2[3], double res[3]);
void crossProduct(double vec1[3], double vec2[3], double res[3]);
/// normalize vector
void normalize(double vec[3]);
......@@ -68,7 +68,7 @@ inline double dotProduct(double vec1[3], double vec2[3])
}
// -------------------- distance --------------------
inline double crossProduct(double vec1[3], double vec2[3], double res[3])
inline void crossProduct(double vec1[3], double vec2[3], double res[3])
{
res[0]=vec1[1]*vec1[2]-vec1[2]*vec1[1];
res[1]=vec1[2]*vec1[0]-vec1[0]*vec1[2];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment