// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
namespace Microsoft.MixedReality.Toolkit.Utilities
{
///
/// Flags used to represent a combination of different types of transformation
///
[System.Flags]
public enum TransformFlags
{
Move = 1 << 0,
Rotate = 1 << 1,
Scale = 1 << 2
}
///
/// Extension methods specific to the enum.
///
public static class TransformFlagsExtensions
{
///
/// 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 TransformFlags a, TransformFlags b)
{
return (a & b) == b;
}
}
}