* mln/fun/x2x/rotation.hh
(rotation<n, C>::rotation(const C&, const algebra::vec<n,C>&)):
Provide a default version for the second argument.
---
milena/ChangeLog | 8 ++++++++
milena/mln/fun/x2x/rotation.hh | 4 ++--
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 6adf168..5b9e6a3 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2013-10-09 Roland Levillain <roland(a)lrde.epita.fr>
+ Milena: Make rotation axis optional.
+
+ * mln/fun/x2x/rotation.hh
+ (rotation<n, C>::rotation(const C&, const algebra::vec<n,C>&)):
+ Provide a default version for the second argument.
+
+2013-10-09 Roland Levillain <roland(a)lrde.epita.fr>
+
Milena: Have mln::debug::iota work with images of floats.
* mln/debug/iota.hh (mln::trait::modulus<T>): New trait.
diff --git a/milena/mln/fun/x2x/rotation.hh b/milena/mln/fun/x2x/rotation.hh
index fd88a84..80b1e78 100644
--- a/milena/mln/fun/x2x/rotation.hh
+++ b/milena/mln/fun/x2x/rotation.hh
@@ -162,9 +162,9 @@ namespace mln
/// Constructor without argument.
rotation();
- /// Constructor with radian alpha and a facultative direction
+ /// Constructor with radian alpha and an optional direction
/// (rotation axis).
- rotation(const C& alpha, const algebra::vec<n,C>& axis);
+ rotation(const C& alpha, const algebra::vec<n,C>& axis = literal::zero);
/// Constructor with quaternion
rotation(const algebra::quat& q);
/// Constructor with h_mat.
--
1.7.10.4