transform Rotation, Slerp and RigidTransform with every representation, ported from scipy.spatial.transform