CyrusBuilt.MonoPi.BitSet.Intersects C# (CSharp) Method

Intersects() public method

Returns true if the specified bit set has any bits set to true that are also set to true in this bit set.
public Intersects ( BitSet bs ) : System.Boolean
bs BitSet /// The bit set to intersect with. ///
return System.Boolean
		public Boolean Intersects(BitSet bs) {
			Boolean goodBits = false;
			Int32 i = Math.Min(this._bits.Length, bs._bits.Length);
			while (--i >= 0) {
				if ((this._bits[i] & bs._bits[i]) != 0) {
					goodBits = true;
					break;
				}
			}
			return goodBits;
		}