示例#1
0
 /// <summary>
 /// Utility function used to determine if the passed in MLWorldPlane object's
 /// flags contain the passed in OrientationFlags.
 /// </summary>
 /// <param name="plane">The MLWorldPlane object to be checked</param>
 /// <param name="flag">The OrientationFlags to be checked</param>
 public static bool DoesPlaneHaveFlag(MLWorldPlane plane, OrientationFlags flag)
 {
     return (plane.Flags & (uint)flag) == (uint)flag;
 }
示例#2
0
 /// <summary>
 /// Utility function used to determine if the passed in MLWorldPlane object's
 /// flags contain the passed in SemanticFlags.
 /// </summary>
 /// <param name="plane">The MLWorldPlane object to be checked</param>
 /// <param name="flag">The SemanticFlags to be checked</param>
 public static bool DoesPlaneHaveFlag(MLWorldPlane plane, SemanticFlags flag)
 {
     return (plane.Flags & (uint)flag) == (uint)flag;
 }