https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Ugo Jardonnet <ugo.jardonnet(a)lrde.epita.fr>
Update rotation.
* mln/fun/x2x/rotation.hh: Assert axis is valid.
rotation.hh | 2 ++
1 file changed, 2 insertions(+)
Index: mln/fun/x2x/rotation.hh
--- mln/fun/x2x/rotation.hh (revision 3134)
+++ mln/fun/x2x/rotation.hh (working copy)
@@ -69,6 +69,8 @@
const float u = axis_[0];
const float v = axis_[1];
const float w = axis_[2];
+ //test axis is valid
+ assert(u != 0 && v != 0 && w != 0);
const float u2 = u * u;
const float v2 = v * v;
const float w2 = w * w;