AxisIndex.TryGetIndex TryGetIndex(Axis, out int) Extension to convert an Axis to an index when applicable. Declaration public static bool TryGetIndex(this Axis axis, out int index) Parameters Type Name Description Axis axis X => 0 Y => 1 Z => 2 int index The index of axis Returns Type Description bool true if axis == X, Y, or Z