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

Method or

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

* 与另一个位集合执行按位或操作 * @param other 另一个位集合 * @returns 新的位集合,包含按位或的结果

(other: Bits)

Source from the content-addressed store, hash-verified

129 * @returns 新的位集合,包含按位或的结果
130 */
131 public or(other: Bits): Bits {
132 const result = new Bits();
133 BitMask64Utils.copy(this._value, result._value);
134 BitMask64Utils.orInPlace(result._value, other._value);
135 return result;
136 }
137
138 /**
139 * 与另一个位集合执行按位异或操作

Callers 1

Bits.test.tsFile · 0.45

Calls 2

copyMethod · 0.45
orInPlaceMethod · 0.45

Tested by

no test coverage detected