CPPLapack
 All Classes Files Functions Variables Friends
drovector_small-specialized.hpp
Go to the documentation of this file.
00001 //=============================================================================
00002 /*! calculate vector product for 2D vector */
00003 inline double operator/(const drovec2& A, const drovec2& B)
00004 {VERBOSE_REPORT;
00005   return A(0)*B(1)-A(1)*B(0);
00006 }
00007 
00008 ///////////////////////////////////////////////////////////////////////////////
00009 ///////////////////////////////////////////////////////////////////////////////
00010 ///////////////////////////////////////////////////////////////////////////////
00011 ///////////////////////////////////////////////////////////////////////////////
00012 ///////////////////////////////////////////////////////////////////////////////
00013 ///////////////////////////////////////////////////////////////////////////////
00014 
00015 //=============================================================================
00016 /*! calculate vector product only for 3D vector */
00017 inline drovec3 operator/(const drovec3& A, const drovec3& B)
00018 {VERBOSE_REPORT;
00019   drovec3 C;
00020   C(0) =A(1)*B(2) -A(2)*B(1);
00021   C(1) =A(2)*B(0) -A(0)*B(2);
00022   C(2) =A(0)*B(1) -A(1)*B(0);
00023   return C;
00024 }
 All Classes Files Functions Variables Friends