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];
62 for (
unsigned int dim = 3; dim <
Dimension; dim++ )
static const unsigned int Dimension
VectorType::ValueType ValueType
VectorType operator()(const VectorType &iU, const VectorType &iV) const