AxisIndex.Index Index(Axis) Extension to convert an Axis to an index. Declaration public static int Index(this Axis axis) Parameters Type Name Description Axis axis X => 0 Y => 1 Z => 2 Anything else => -1 Returns Type Description int The index of the axis