MCPcopy Create free account
hub / github.com/esengine/esengine / intersects

Method intersects

packages/core/src/ECS/Utils/Bits.ts:78–80  ·  view source on GitHub ↗

* 检查是否与另一个位集合有交集 * @param other 另一个位集合 * @returns 如果有共同的设置位则返回true

(other: Bits)

Source from the content-addressed store, hash-verified

76 * @returns 如果有共同的设置位则返回true
77 */
78 public intersects(other: Bits): boolean {
79 return BitMask64Utils.hasAny(this._value, other._value);
80 }
81
82 /**
83 * 检查是否与另一个位集合没有交集

Callers 1

Bits.test.tsFile · 0.45

Calls 1

hasAnyMethod · 0.45

Tested by

no test coverage detected