Home > @esengine/ecs-framework-monorepo > Bits > intersects
Bits.intersects() method
检查是否与另一个位集合有交集
Signature:
typescript
intersects(other: Bits): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
other | 另一个位集合 |
Returns:
boolean
如果有共同的设置位则返回true