private static _isEqual ( BitMask, m1, BitMask, m2 ) : bool | ||
m1 | BitMask, | |
m2 | BitMask, | |
return | bool |
private static bool _isEqual( BitMask m1, BitMask m2 )
{
// BitMasks need to be the same size
if( m1._bytes.Length != m2._bytes.Length ) return false;
// Compare all elements in each BitMask's _byte array
for( int i = 0; i < m1._bytes.Length; i++ )
{
if( m1._bytes[i] != m2._bytes[i] )
{
return false;
}
}
return true;
}