def find_rotation_distance(self, d, interval):
    '\n        The distance from the Group pivot of a rotation along Dimension ``d`` that\n        can safely iterate over the ``interval``.\n        '
    assert (d is interval.dim)
    for (rotation, distance) in self._pivot_legal_rotations[d]:
        if (rotation.union(interval) != rotation):
            continue
        min_interval = self._pivot_min_intervals[d].translate((- distance))
        if (interval.union(min_interval) == interval):
            return distance
    return None
The distance from the Group pivot of a rotation along Dimension ``d`` that
can safely iterate over the ``interval``.
def find_rotation_distance(self, d, interval):
    '\n        The distance from the Group pivot of a rotation along Dimension ``d`` that\n        can safely iterate over the ``interval``.\n        '
    assert (d is interval.dim)
    for (rotation, distance) in self._pivot_legal_rotations[d]:
        if (rotation.union(interval) != rotation):
            continue
        min_interval = self._pivot_min_intervals[d].translate((- distance))
        if (interval.union(min_interval) == interval):
            return distance
    return None