FTransformSubGizmoCommonParams::GetClampedAxisIndex

Returns the Axis parameter as an index in the range [0,2] where 0 corresponds to X (or None), 1 corresponds to Y, and 2 corresponds to Z.