18 #ifndef __itkCrossHelper_h
19 #define __itkCrossHelper_h
35 template<
typename TVector >
42 itkStaticConstMacro (
Dimension,
unsigned int, VectorType::Dimension);
56 oCross[0] = iU[1] * iV[2] - iV[1] * iU[2];
57 oCross[1] = iV[0] * iU[2] - iU[0] * iV[2];
58 oCross[2] = iU[0] * iV[1] - iV[0] * iU[1];
60 for (
unsigned int dim = 3; dim <
Dimension; dim++ )