I posted this thread last week but it wasn't accepted so Im trying again.
I just looked into vtkMath source code provided via VTK.git and I found
things like this:
inline double vtkMath::Normalize(double x)
if ( ( den = vtkMath::Norm( x ) ) != 0.0 )
for (int i=0; i < 3; i++)
x[i] /= den;
I guess the for-loop can be erased since it's useless... btw, if-instruction
doesn't do anything so it's also useless.
View this message in context: http://vtk.1045678.n5.nabble.com/Useless-comupations-in-vtkMath-tp4700083p4700083.html
Sent from the VTK - Users mailing list archive at Nabble.com.
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe: