strange fix for msvc 2010

This commit is contained in:
Joachim Schoeberl 2011-10-12 20:53:13 +00:00
parent 4d3352c426
commit 0c17f7fb65

View File

@ -74,7 +74,15 @@ namespace netgen
inline Vec<3> Cross (const Vec<3> & v1, const Vec<3> & v2)
/*
new wrong code problem with MSVC2010:
using Cross ( & , & ) computes wrong cross-product, problem arises in
Surface::DefineTangentialPlane, e.g. with example boxcyl.geo
*/
// inline Vec<3> Cross (const Vec<3> & v1, const Vec<3> & v2)
inline Vec<3> Cross (Vec<3> v1, Vec<3> v2)
{
return Vec<3>
( v1(1) * v2(2) - v1(2) * v2(1),