Improved getMinAxis() and getMaxAxis()

Changed `getMinAxis()` and `getMaxAxis()` to use the new `Axis` enum.