27 #ifndef SCRIBO_PRIMITIVE_LINK_INTERNAL_DMAX_WIDTH_AND_HEIGHT_HH
28 # define SCRIBO_PRIMITIVE_LINK_INTERNAL_DMAX_WIDTH_AND_HEIGHT_HH
36 # include <scribo/primitive/link/internal/dmax_functor_base.hh>
60 float compute_(
const box2d&)
const;
63 using super_::dmax_factor_;
67 # ifndef MLN_INCLUDE_ONLY
71 dmax_width_and_height::dmax_width_and_height(
float dmax_factor)
79 dmax_width_and_height::compute_(
const box2d& b)
const
85 return (w / 2.0f) + dmax_factor_ * (h + w);
89 # endif // ! MLN_INCLUDE_ONLY
101 #endif // ! SCRIBO_PRIMITIVE_LINK_INTERNAL_DMAX_WIDTH_AND_HEIGHT_HH