// Copyright (c) Microsoft Corporation. // Licensed under the MIT License. namespace Microsoft.MixedReality.Toolkit.Utilities { /// /// Flags used to represent whether manipulation can be far, near or both /// [System.Flags] public enum ManipulationProximityFlags { Near = 1 << 0, Far = 1 << 1, } /// /// Extension methods specific to the enum. /// public static class ManipulationProximityFlagsExtensions { /// /// 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 ManipulationProximityFlags a, ManipulationProximityFlags b) { return (a & b) == b; } } }