Skip to content

Home > @esengine/ecs-framework-monorepo > Bits > intersects

Bits.intersects() method

检查是否与另一个位集合有交集

Signature:

typescript
intersects(other: Bits): boolean;

Parameters

Parameter

Type

Description

other

Bits

另一个位集合

Returns:

boolean

如果有共同的设置位则返回true

基于 MIT 许可证发布