find_rotation function

Test for rotation invariant datasets