// Public methods /// <summary> /// Get the number of "used" axes in a stripe count, i.e. those for which the count is nonzero. /// </summary> /// <param name="v">The Vector3i representing the stripe count to measure.</param> /// <returns>The number of "used" axes in the stripe count, i.e. those for which the count is nonzero.</returns> public static int AxesCount(this Vector3i v) { switch (v.AxesUsed()) { case Axes.None: return(0); case Axes.X: case Axes.Y: case Axes.Z: return(1); case Axes.XYZ: return(3); default: return(2); } }