00001 //============================================================================= 00002 /*! calculate vector product for 2D vector */ 00003 inline comple operator/(const zrovec2& A, const zrovec2& B) 00004 {VERBOSE_REPORT; 00005 return A(0)*B(1)-A(1)*B(0); 00006 } 00007 00008 /////////////////////////////////////////////////////////////////////////////// 00009 /////////////////////////////////////////////////////////////////////////////// 00010 /////////////////////////////////////////////////////////////////////////////// 00011 00012 //============================================================================= 00013 /*! calculate vector product only for 3D vector */ 00014 inline zrovec3 operator/(const zrovec3& A, const zrovec3& B) 00015 {VERBOSE_REPORT; 00016 zrovec3 C; 00017 C(0) =A(1)*B(2) -A(2)*B(1); 00018 C(1) =A(2)*B(0) -A(0)*B(2); 00019 C(2) =A(0)*B(1) -A(1)*B(0); 00020 return C; 00021 }