[Insight-developers] Vector3D cross product
Luis Ibanez
ibanez@choroid.cs.unc.edu
Wed, 16 May 2001 12:15:17 -0400 (EDT)
Hi,
A cross product method is missing for itkVector.
this method only makes sense in 3D, so the normal way
to do it would be to use partial specialization...
(which we can't)
Among other options we could:
1) fully specialize a cross product function for
Vector<double,3>
Vector<float,3>
Vector<int,3>
as vnl_vector does
2) Create an intermediary class itkVector3D<T>
deriving from itkVector, and still templated
over the type. Then add the cross product
method there.
With option (1) an itkVector.cxx will be required
in addition to the current itkVector.txx.
Any preference between these two (or maybe other)
options ?
Luis