Use enum to determine the axis to use on some functions.