Go to the documentation of this file.00001
00002 #ifndef vnl_double_3_h_
00003 #define vnl_double_3_h_
00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE
00005 #pragma interface
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #include <vnl/vnl_T_n.h>
00021
00022
00023 vnl_T_n_impl(double,3);
00024
00025
00026
00027 inline
00028 vnl_double_3 vnl_cross_3d(vnl_double_3 const& v1, vnl_double_3 const& v2)
00029 {
00030 vnl_double_3 result;
00031 result[0] = v1[1] * v2[2] - v1[2] * v2[1];
00032 result[1] = v1[2] * v2[0] - v1[0] * v2[2];
00033 result[2] = v1[0] * v2[1] - v1[1] * v2[0];
00034 return result;
00035 }
00036
00037 #endif // vnl_double_3_h_