mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
strange fix for msvc 2010
This commit is contained in:
parent
4d3352c426
commit
0c17f7fb65
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user