26 #ifndef MLN_FUN_P2P_MIRROR_HH
27 # define MLN_FUN_P2P_MIRROR_HH
33 # include <mln/core/concept/function.hh>
45 struct mirror :
public Function_v2v< mirror<B> >
47 typedef mln_psite(B) result;
52 operator()(const mln_psite(B)&) const;
57 # ifndef MLN_INCLUDE_ONLY
61 mirror<B>::mirror(
const B& box)
69 mirror<B>::operator()(const mln_psite(B)& p)
const
71 mln_precondition(box_.has(p));
74 r[0] = box_.max()[0] - p[0];
79 # endif // ! MLN_INCLUDE_ONLY
87 #endif // ! MLN_FUN_P2P_MIRROR_HH