Templatized Rotation class.