// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using UnityEngine.XR;
namespace Microsoft.MixedReality.Toolkit.XRSDK
{
public static class FlagsExtensions
{
///
/// 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 InputDeviceCharacteristics a, InputDeviceCharacteristics b)
{
return (a & b) == b;
}
///
/// 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 TrackingOriginModeFlags a, TrackingOriginModeFlags b)
{
return (a & b) == b;
}
}
}