This helper method rotates the given data to match the global central axis and translates it so that the center point is aligned.
Data input
True to convert data towards zero axis, False to convert data from zero axis to central axis.
Converted input