// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace Microsoft.MixedReality.Toolkit.Utilities { /// /// Flags used to represent the number of hands that can be used in manipulation /// [System.Flags] public enum ManipulationHandFlags { OneHanded = 1 << 0, TwoHanded = 1 << 1, } /// /// Extension methods specific to the enum. /// public static class ManipulationHandFlagsExtensions { /// /// 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 ManipulationHandFlags a, ManipulationHandFlags b) { return (a & b) == b; } } }