- Slice slice = get_bounds_slice (positions, frac);
- Interval iv(positions[slice.min ()], positions[slice.max ()]);
-
- if (slice.min () == slice.max ())
- {
- if (slice.min () == 0)
- iv.min () = - period + positions.top ();
- else
- iv.max () = period + positions[0];
- }
-
- iv += period * n;
-
- return iv;