// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace Microsoft.MixedReality.Toolkit.Utilities { /// /// Flags used to represent a set of 3D axes /// [System.Flags] public enum AxisFlags { XAxis = 1 << 0, YAxis = 1 << 1, ZAxis = 1 << 2 } /// /// Extension methods specific to the enum. /// public static class AxisFlagsExtensions { /// /// Checks to determine if all bits in a provided mask are set. /// /// value. /// mask. /// /// True if all of the bits in the specified mask are set in the current value. /// public static bool IsMaskSet(this AxisFlags a, AxisFlags b) { return (a & b) == b; } } }