- // Notice that target_value is the rotation between the current
- // 'link' value and the target angle in the canvas, so we need
- // to add it to 'link'
- if(Angle::rad(maximum).get()>=Angle::rad(link+target_value).get() && Angle::rad(link+target_value).get()>=Angle::rad(minimum).get())
- return link + target_value;