Assets/Deps/emotitron/SmartVars/GenericX.cs
/// <summary>
/// Check if axis is used in this type.
/// </summary>
/// <param name="axis">0=x, y=1, z=2</param>
Check if axis is used in this type.
Check if axis is used in this type .
public static bool IsXYZ(this XType type, int axis)
		{
			int axismask =
				(axis == 0) ? (int)XType.X :
				(axis == 1) ? (int)XType.Y :
				(axis == 2) ? (int)XType.Z :
				0;
			return (((int)type & axismask) != 0);
		}
public static bool IsXYZ ( this XType type , int axis ) { int axismask = ( axis == 0 ) ? ( int ) XType . X : ( axis == 1 ) ? ( int ) XType . Y : ( axis == 2 ) ? ( int ) XType . Z : 0 ; return ( ( ( int ) type & axismask ) != 0 ) ; }
Check if axis is used in this type.
Check if axis is used in this type .
XType
this
axis
int
None