[vtk-developers] vtkMath::Dot2D
David Doria
daviddoria+vtk at gmail.com
Wed Dec 9 17:57:31 EST 2009
Is there any reason:
// Description:
// Dot product of two 2-vectors. The third (z) component is
// ignored (double-precision version).
static double Dot2D(const double x[3], const double y[3]) {
return ( x[0] * y[0] + x[1] * y[1] );};
needs to accept 3-vectors and talk about how it ignores the last
component? Couldn't it just be:
// Description:
// Dot product of two 2-vectors. (double-precision version).
static double Dot2D(const double x[2], const double y[2]) {
return ( x[0] * y[0] + x[1] * y[1] );};
Thanks,
David
More information about the vtk-developers
mailing list